home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / libogg / libvorbis-1.0rc3 / configure < prev    next >
Encoding:
Text File  |  2002-10-27  |  205.0 KB  |  6,683 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-shared[=PKGS]  build shared libraries [default=yes]"
  16. ac_help="$ac_help
  17.   --enable-static[=PKGS]  build static libraries [default=yes]"
  18. ac_help="$ac_help
  19.   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
  20. ac_help="$ac_help
  21.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
  22.  
  23. # Find the correct PATH separator.  Usually this is `:', but
  24. # DJGPP uses `;' like DOS.
  25. if test "X${PATH_SEPARATOR+set}" != Xset; then
  26.   UNAME=${UNAME-`uname 2>/dev/null`}
  27.   case X$UNAME in
  28.     *-DOS) lt_cv_sys_path_separator=';' ;;
  29.     *)     lt_cv_sys_path_separator=':' ;;
  30.   esac
  31.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  32. fi
  33.  
  34.  
  35. # Check that we are running under the correct shell.
  36. SHELL=${CONFIG_SHELL-/bin/sh}
  37.  
  38. case X$ECHO in
  39. X*--fallback-echo)
  40.   # Remove one level of quotation (which was required for Make).
  41.   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  42.   ;;
  43. esac
  44.  
  45. echo=${ECHO-echo}
  46. if test "X$1" = X--no-reexec; then
  47.   # Discard the --no-reexec flag, and continue.
  48.   shift
  49. elif test "X$1" = X--fallback-echo; then
  50.   # Avoid inline document here, it may be left over
  51.   :
  52. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  53.   # Yippee, $echo works!
  54.   :
  55. else
  56.   # Restart under the correct shell.
  57.   exec $SHELL "$0" --no-reexec ${1+"$@"}
  58. fi
  59.  
  60. if test "X$1" = X--fallback-echo; then
  61.   # used as fallback echo
  62.   shift
  63.   cat <<EOF
  64.  
  65. EOF
  66.   exit 0
  67. fi
  68.  
  69. # The HP-UX ksh and POSIX shell print the target directory to stdout
  70. # if CDPATH is set.
  71. if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  72.  
  73. if test -z "$ECHO"; then
  74. if test "X${echo_test_string+set}" != Xset; then
  75. # find a string as large as possible, as long as the shell can cope with it
  76.   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  77.     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  78.     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  79.        echo_test_string="`eval $cmd`" &&
  80.        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  81.     then
  82.       break
  83.     fi
  84.   done
  85. fi
  86.  
  87. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  88.    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  89.    test "X$echo_testing_string" = "X$echo_test_string"; then
  90.   :
  91. else
  92.   # The Solaris, AIX, and Digital Unix default echo programs unquote
  93.   # backslashes.  This makes it impossible to quote backslashes using
  94.   #   echo "$something" | sed 's/\\/\\\\/g'
  95.   #
  96.   # So, first we look for a working echo in the user's PATH.
  97.  
  98.   IFS="${IFS=     }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  99.   for dir in $PATH /usr/ucb; do
  100.     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  101.        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  102.        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  103.        test "X$echo_testing_string" = "X$echo_test_string"; then
  104.       echo="$dir/echo"
  105.       break
  106.     fi
  107.   done
  108.   IFS="$save_ifs"
  109.  
  110.   if test "X$echo" = Xecho; then
  111.     # We didn't find a better echo, so look for alternatives.
  112.     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  113.        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  114.        test "X$echo_testing_string" = "X$echo_test_string"; then
  115.       # This shell has a builtin print -r that does the trick.
  116.       echo='print -r'
  117.     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  118.      test "X$CONFIG_SHELL" != X/bin/ksh; then
  119.       # If we have ksh, try running configure again with it.
  120.       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  121.       export ORIGINAL_CONFIG_SHELL
  122.       CONFIG_SHELL=/bin/ksh
  123.       export CONFIG_SHELL
  124.       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  125.     else
  126.       # Try using printf.
  127.       echo='printf %s\n'
  128.       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  129.      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  130.      test "X$echo_testing_string" = "X$echo_test_string"; then
  131.     # Cool, printf works
  132.     :
  133.       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  134.        test "X$echo_testing_string" = 'X\t' &&
  135.        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  136.        test "X$echo_testing_string" = "X$echo_test_string"; then
  137.     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  138.     export CONFIG_SHELL
  139.     SHELL="$CONFIG_SHELL"
  140.     export SHELL
  141.     echo="$CONFIG_SHELL $0 --fallback-echo"
  142.       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  143.        test "X$echo_testing_string" = 'X\t' &&
  144.        echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  145.        test "X$echo_testing_string" = "X$echo_test_string"; then
  146.     echo="$CONFIG_SHELL $0 --fallback-echo"
  147.       else
  148.     # maybe with a smaller string...
  149.     prev=:
  150.  
  151.     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  152.       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  153.       then
  154.         break
  155.       fi
  156.       prev="$cmd"
  157.     done
  158.  
  159.     if test "$prev" != 'sed 50q "$0"'; then
  160.       echo_test_string=`eval $prev`
  161.       export echo_test_string
  162.       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  163.     else
  164.       # Oops.  We lost completely, so just stick with echo.
  165.       echo=echo
  166.     fi
  167.       fi
  168.     fi
  169.   fi
  170. fi
  171. fi
  172.  
  173. # Copy echo and quote the copy suitably for passing to libtool from
  174. # the Makefile, instead of quoting the original, which is used later.
  175. ECHO=$echo
  176. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  177.    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  178. fi
  179.  
  180.  
  181. ac_help="$ac_help
  182.   --disable-libtool-lock  avoid locking (might break parallel builds)"
  183. ac_help="$ac_help
  184.   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
  185. ac_help="$ac_help
  186.   --with-ogg=PFX   Prefix where libogg is installed (optional)"
  187. ac_help="$ac_help
  188.   --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)"
  189. ac_help="$ac_help
  190.   --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)"
  191. ac_help="$ac_help
  192.   --disable-oggtest       Do not try to compile and run a test Ogg program"
  193.  
  194. # Initialize some variables set by options.
  195. # The variables have the same names as the options, with
  196. # dashes changed to underlines.
  197. build=NONE
  198. cache_file=./config.cache
  199. exec_prefix=NONE
  200. host=NONE
  201. no_create=
  202. nonopt=NONE
  203. no_recursion=
  204. prefix=NONE
  205. program_prefix=NONE
  206. program_suffix=NONE
  207. program_transform_name=s,x,x,
  208. silent=
  209. site=
  210. srcdir=
  211. target=NONE
  212. verbose=
  213. x_includes=NONE
  214. x_libraries=NONE
  215. bindir='${exec_prefix}/bin'
  216. sbindir='${exec_prefix}/sbin'
  217. libexecdir='${exec_prefix}/libexec'
  218. datadir='${prefix}/share'
  219. sysconfdir='${prefix}/etc'
  220. sharedstatedir='${prefix}/com'
  221. localstatedir='${prefix}/var'
  222. libdir='${exec_prefix}/lib'
  223. includedir='${prefix}/include'
  224. oldincludedir='/usr/include'
  225. infodir='${prefix}/info'
  226. mandir='${prefix}/man'
  227.  
  228. # Initialize some other variables.
  229. subdirs=
  230. MFLAGS= MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. ac_max_here_lines=12
  234.  
  235. ac_prev=
  236. for ac_option
  237. do
  238.  
  239.   # If the previous option needs an argument, assign it.
  240.   if test -n "$ac_prev"; then
  241.     eval "$ac_prev=\$ac_option"
  242.     ac_prev=
  243.     continue
  244.   fi
  245.  
  246.   case "$ac_option" in
  247.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  248.   *) ac_optarg= ;;
  249.   esac
  250.  
  251.   # Accept the important Cygnus configure options, so we can diagnose typos.
  252.  
  253.   case "$ac_option" in
  254.  
  255.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  256.     ac_prev=bindir ;;
  257.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  258.     bindir="$ac_optarg" ;;
  259.  
  260.   -build | --build | --buil | --bui | --bu)
  261.     ac_prev=build ;;
  262.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  263.     build="$ac_optarg" ;;
  264.  
  265.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  266.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  267.     ac_prev=cache_file ;;
  268.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  269.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  270.     cache_file="$ac_optarg" ;;
  271.  
  272.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  273.     ac_prev=datadir ;;
  274.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  275.   | --da=*)
  276.     datadir="$ac_optarg" ;;
  277.  
  278.   -disable-* | --disable-*)
  279.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  280.     # Reject names that are not valid shell variable names.
  281.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  282.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  283.     fi
  284.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  285.     eval "enable_${ac_feature}=no" ;;
  286.  
  287.   -enable-* | --enable-*)
  288.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  289.     # Reject names that are not valid shell variable names.
  290.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  291.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  292.     fi
  293.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  294.     case "$ac_option" in
  295.       *=*) ;;
  296.       *) ac_optarg=yes ;;
  297.     esac
  298.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  299.  
  300.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  301.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  302.   | --exec | --exe | --ex)
  303.     ac_prev=exec_prefix ;;
  304.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  305.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  306.   | --exec=* | --exe=* | --ex=*)
  307.     exec_prefix="$ac_optarg" ;;
  308.  
  309.   -gas | --gas | --ga | --g)
  310.     # Obsolete; use --with-gas.
  311.     with_gas=yes ;;
  312.  
  313.   -help | --help | --hel | --he)
  314.     # Omit some internal or obsolete options to make the list less imposing.
  315.     # This message is too long to be a string in the A/UX 3.1 sh.
  316.     cat << EOF
  317. Usage: configure [options] [host]
  318. Options: [defaults in brackets after descriptions]
  319. Configuration:
  320.   --cache-file=FILE       cache test results in FILE
  321.   --help                  print this message
  322.   --no-create             do not create output files
  323.   --quiet, --silent       do not print \`checking...' messages
  324.   --version               print the version of autoconf that created configure
  325. Directory and file names:
  326.   --prefix=PREFIX         install architecture-independent files in PREFIX
  327.                           [$ac_default_prefix]
  328.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  329.                           [same as prefix]
  330.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  331.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  332.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  333.   --datadir=DIR           read-only architecture-independent data in DIR
  334.                           [PREFIX/share]
  335.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  336.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  337.                           [PREFIX/com]
  338.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  339.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  340.   --includedir=DIR        C header files in DIR [PREFIX/include]
  341.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  342.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  343.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  344.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  345.   --program-prefix=PREFIX prepend PREFIX to installed program names
  346.   --program-suffix=SUFFIX append SUFFIX to installed program names
  347.   --program-transform-name=PROGRAM
  348.                           run sed PROGRAM on installed program names
  349. EOF
  350.     cat << EOF
  351. Host type:
  352.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  353.   --host=HOST             configure for HOST [guessed]
  354.   --target=TARGET         configure for TARGET [TARGET=HOST]
  355. Features and packages:
  356.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  357.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  358.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  359.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  360.   --x-includes=DIR        X include files are in DIR
  361.   --x-libraries=DIR       X library files are in DIR
  362. EOF
  363.     if test -n "$ac_help"; then
  364.       echo "--enable and --with options recognized:$ac_help"
  365.     fi
  366.     exit 0 ;;
  367.  
  368.   -host | --host | --hos | --ho)
  369.     ac_prev=host ;;
  370.   -host=* | --host=* | --hos=* | --ho=*)
  371.     host="$ac_optarg" ;;
  372.  
  373.   -includedir | --includedir | --includedi | --included | --include \
  374.   | --includ | --inclu | --incl | --inc)
  375.     ac_prev=includedir ;;
  376.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  377.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  378.     includedir="$ac_optarg" ;;
  379.  
  380.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  381.     ac_prev=infodir ;;
  382.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  383.     infodir="$ac_optarg" ;;
  384.  
  385.   -libdir | --libdir | --libdi | --libd)
  386.     ac_prev=libdir ;;
  387.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  388.     libdir="$ac_optarg" ;;
  389.  
  390.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  391.   | --libexe | --libex | --libe)
  392.     ac_prev=libexecdir ;;
  393.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  394.   | --libexe=* | --libex=* | --libe=*)
  395.     libexecdir="$ac_optarg" ;;
  396.  
  397.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  398.   | --localstate | --localstat | --localsta | --localst \
  399.   | --locals | --local | --loca | --loc | --lo)
  400.     ac_prev=localstatedir ;;
  401.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  402.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  403.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  404.     localstatedir="$ac_optarg" ;;
  405.  
  406.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  407.     ac_prev=mandir ;;
  408.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  409.     mandir="$ac_optarg" ;;
  410.  
  411.   -nfp | --nfp | --nf)
  412.     # Obsolete; use --without-fp.
  413.     with_fp=no ;;
  414.  
  415.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  416.   | --no-cr | --no-c)
  417.     no_create=yes ;;
  418.  
  419.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  420.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  421.     no_recursion=yes ;;
  422.  
  423.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  424.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  425.   | --oldin | --oldi | --old | --ol | --o)
  426.     ac_prev=oldincludedir ;;
  427.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  428.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  429.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  430.     oldincludedir="$ac_optarg" ;;
  431.  
  432.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  433.     ac_prev=prefix ;;
  434.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  435.     prefix="$ac_optarg" ;;
  436.  
  437.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  438.   | --program-pre | --program-pr | --program-p)
  439.     ac_prev=program_prefix ;;
  440.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  441.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  442.     program_prefix="$ac_optarg" ;;
  443.  
  444.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  445.   | --program-suf | --program-su | --program-s)
  446.     ac_prev=program_suffix ;;
  447.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  448.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  449.     program_suffix="$ac_optarg" ;;
  450.  
  451.   -program-transform-name | --program-transform-name \
  452.   | --program-transform-nam | --program-transform-na \
  453.   | --program-transform-n | --program-transform- \
  454.   | --program-transform | --program-transfor \
  455.   | --program-transfo | --program-transf \
  456.   | --program-trans | --program-tran \
  457.   | --progr-tra | --program-tr | --program-t)
  458.     ac_prev=program_transform_name ;;
  459.   -program-transform-name=* | --program-transform-name=* \
  460.   | --program-transform-nam=* | --program-transform-na=* \
  461.   | --program-transform-n=* | --program-transform-=* \
  462.   | --program-transform=* | --program-transfor=* \
  463.   | --program-transfo=* | --program-transf=* \
  464.   | --program-trans=* | --program-tran=* \
  465.   | --progr-tra=* | --program-tr=* | --program-t=*)
  466.     program_transform_name="$ac_optarg" ;;
  467.  
  468.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  469.   | -silent | --silent | --silen | --sile | --sil)
  470.     silent=yes ;;
  471.  
  472.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473.     ac_prev=sbindir ;;
  474.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475.   | --sbi=* | --sb=*)
  476.     sbindir="$ac_optarg" ;;
  477.  
  478.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  479.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  480.   | --sharedst | --shareds | --shared | --share | --shar \
  481.   | --sha | --sh)
  482.     ac_prev=sharedstatedir ;;
  483.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  484.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  485.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  486.   | --sha=* | --sh=*)
  487.     sharedstatedir="$ac_optarg" ;;
  488.  
  489.   -site | --site | --sit)
  490.     ac_prev=site ;;
  491.   -site=* | --site=* | --sit=*)
  492.     site="$ac_optarg" ;;
  493.  
  494.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  495.     ac_prev=srcdir ;;
  496.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  497.     srcdir="$ac_optarg" ;;
  498.  
  499.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500.   | --syscon | --sysco | --sysc | --sys | --sy)
  501.     ac_prev=sysconfdir ;;
  502.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504.     sysconfdir="$ac_optarg" ;;
  505.  
  506.   -target | --target | --targe | --targ | --tar | --ta | --t)
  507.     ac_prev=target ;;
  508.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  509.     target="$ac_optarg" ;;
  510.  
  511.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  512.     verbose=yes ;;
  513.  
  514.   -version | --version | --versio | --versi | --vers)
  515.     echo "configure generated by autoconf version 2.13"
  516.     exit 0 ;;
  517.  
  518.   -with-* | --with-*)
  519.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  520.     # Reject names that are not valid shell variable names.
  521.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  522.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  523.     fi
  524.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  525.     case "$ac_option" in
  526.       *=*) ;;
  527.       *) ac_optarg=yes ;;
  528.     esac
  529.     eval "with_${ac_package}='$ac_optarg'" ;;
  530.  
  531.   -without-* | --without-*)
  532.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  533.     # Reject names that are not valid shell variable names.
  534.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  535.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  536.     fi
  537.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  538.     eval "with_${ac_package}=no" ;;
  539.  
  540.   --x)
  541.     # Obsolete; use --with-x.
  542.     with_x=yes ;;
  543.  
  544.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  545.   | --x-incl | --x-inc | --x-in | --x-i)
  546.     ac_prev=x_includes ;;
  547.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  548.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  549.     x_includes="$ac_optarg" ;;
  550.  
  551.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  552.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  553.     ac_prev=x_libraries ;;
  554.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  555.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  556.     x_libraries="$ac_optarg" ;;
  557.  
  558.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  559.     ;;
  560.  
  561.   *)
  562.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  563.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  564.     fi
  565.     if test "x$nonopt" != xNONE; then
  566.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  567.     fi
  568.     nonopt="$ac_option"
  569.     ;;
  570.  
  571.   esac
  572. done
  573.  
  574. if test -n "$ac_prev"; then
  575.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  576. fi
  577.  
  578. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  579.  
  580. # File descriptor usage:
  581. # 0 standard input
  582. # 1 file creation
  583. # 2 errors and warnings
  584. # 3 some systems may open it to /dev/tty
  585. # 4 used on the Kubota Titan
  586. # 6 checking for... messages and results
  587. # 5 compiler messages saved in config.log
  588. if test "$silent" = yes; then
  589.   exec 6>/dev/null
  590. else
  591.   exec 6>&1
  592. fi
  593. exec 5>./config.log
  594.  
  595. echo "\
  596. This file contains any messages produced by compilers while
  597. running configure, to aid debugging if configure makes a mistake.
  598. " 1>&5
  599.  
  600. # Strip out --no-create and --no-recursion so they do not pile up.
  601. # Also quote any args containing shell metacharacters.
  602. ac_configure_args=
  603. for ac_arg
  604. do
  605.   case "$ac_arg" in
  606.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  607.   | --no-cr | --no-c) ;;
  608.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  609.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  610.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  611.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  612.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  613.   esac
  614. done
  615.  
  616. # NLS nuisances.
  617. # Only set these to C if already set.  These must not be set unconditionally
  618. # because not all systems understand e.g. LANG=C (notably SCO).
  619. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  620. # Non-C LC_CTYPE values break the ctype check.
  621. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  622. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  623. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  624. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  625.  
  626. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  627. rm -rf conftest* confdefs.h
  628. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  629. echo > confdefs.h
  630.  
  631. # A filename unique to this package, relative to the directory that
  632. # configure is in, which we can look for to find out if srcdir is correct.
  633. ac_unique_file=lib/mdct.c
  634.  
  635. # Find the source files, if location was not specified.
  636. if test -z "$srcdir"; then
  637.   ac_srcdir_defaulted=yes
  638.   # Try the directory containing this script, then its parent.
  639.   ac_prog=$0
  640.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  641.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  642.   srcdir=$ac_confdir
  643.   if test ! -r $srcdir/$ac_unique_file; then
  644.     srcdir=..
  645.   fi
  646. else
  647.   ac_srcdir_defaulted=no
  648. fi
  649. if test ! -r $srcdir/$ac_unique_file; then
  650.   if test "$ac_srcdir_defaulted" = yes; then
  651.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  652.   else
  653.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  654.   fi
  655. fi
  656. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  657.  
  658. # Prefer explicitly selected file to automatically selected ones.
  659. if test -z "$CONFIG_SITE"; then
  660.   if test "x$prefix" != xNONE; then
  661.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  662.   else
  663.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  664.   fi
  665. fi
  666. for ac_site_file in $CONFIG_SITE; do
  667.   if test -r "$ac_site_file"; then
  668.     echo "loading site script $ac_site_file"
  669.     . "$ac_site_file"
  670.   fi
  671. done
  672.  
  673. if test -r "$cache_file"; then
  674.   echo "loading cache $cache_file"
  675.   . $cache_file
  676. else
  677.   echo "creating cache $cache_file"
  678.   > $cache_file
  679. fi
  680.  
  681. ac_ext=c
  682. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  683. ac_cpp='$CPP $CPPFLAGS'
  684. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  685. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  686. cross_compiling=$ac_cv_prog_cc_cross
  687.  
  688. ac_exeext=
  689. ac_objext=o
  690. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  691.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  692.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  693.     ac_n= ac_c='
  694. ' ac_t='    '
  695.   else
  696.     ac_n=-n ac_c= ac_t=
  697.   fi
  698. else
  699.   ac_n= ac_c='\c' ac_t=
  700. fi
  701.  
  702.  
  703. ac_aux_dir=
  704. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  705.   if test -f $ac_dir/install-sh; then
  706.     ac_aux_dir=$ac_dir
  707.     ac_install_sh="$ac_aux_dir/install-sh -c"
  708.     break
  709.   elif test -f $ac_dir/install.sh; then
  710.     ac_aux_dir=$ac_dir
  711.     ac_install_sh="$ac_aux_dir/install.sh -c"
  712.     break
  713.   fi
  714. done
  715. if test -z "$ac_aux_dir"; then
  716.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  717. fi
  718. ac_config_guess=$ac_aux_dir/config.guess
  719. ac_config_sub=$ac_aux_dir/config.sub
  720. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  721.  
  722. # Find a good install program.  We prefer a C program (faster),
  723. # so one script is as good as another.  But avoid the broken or
  724. # incompatible versions:
  725. # SysV /etc/install, /usr/sbin/install
  726. # SunOS /usr/etc/install
  727. # IRIX /sbin/install
  728. # AIX /bin/install
  729. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  730. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  731. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  732. # ./install, which can be erroneously created by make from ./install.sh.
  733. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  734. echo "configure:735: checking for a BSD compatible install" >&5
  735. if test -z "$INSTALL"; then
  736. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  737.   echo $ac_n "(cached) $ac_c" 1>&6
  738. else
  739.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  740.   for ac_dir in $PATH; do
  741.     # Account for people who put trailing slashes in PATH elements.
  742.     case "$ac_dir/" in
  743.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  744.     *)
  745.       # OSF1 and SCO ODT 3.0 have their own names for install.
  746.       # Don't use installbsd from OSF since it installs stuff as root
  747.       # by default.
  748.       for ac_prog in ginstall scoinst install; do
  749.         if test -f $ac_dir/$ac_prog; then
  750.       if test $ac_prog = install &&
  751.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  752.         # AIX install.  It has an incompatible calling convention.
  753.         :
  754.       else
  755.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  756.         break 2
  757.       fi
  758.     fi
  759.       done
  760.       ;;
  761.     esac
  762.   done
  763.   IFS="$ac_save_IFS"
  764.  
  765. fi
  766.   if test "${ac_cv_path_install+set}" = set; then
  767.     INSTALL="$ac_cv_path_install"
  768.   else
  769.     # As a last resort, use the slow shell script.  We don't cache a
  770.     # path for INSTALL within a source directory, because that will
  771.     # break other packages using the cache if that directory is
  772.     # removed, or if the path is relative.
  773.     INSTALL="$ac_install_sh"
  774.   fi
  775. fi
  776. echo "$ac_t""$INSTALL" 1>&6
  777.  
  778. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  779. # It thinks the first close brace ends the variable substitution.
  780. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  781.  
  782. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  783.  
  784. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  785.  
  786. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  787. echo "configure:788: checking whether build environment is sane" >&5
  788. # Just in case
  789. sleep 1
  790. echo timestamp > conftestfile
  791. # Do `set' in a subshell so we don't clobber the current shell's
  792. # arguments.  Must try -L first in case configure is actually a
  793. # symlink; some systems play weird games with the mod time of symlinks
  794. # (eg FreeBSD returns the mod time of the symlink's containing
  795. # directory).
  796. if (
  797.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  798.    if test "$*" = "X"; then
  799.       # -L didn't work.
  800.       set X `ls -t $srcdir/configure conftestfile`
  801.    fi
  802.    if test "$*" != "X $srcdir/configure conftestfile" \
  803.       && test "$*" != "X conftestfile $srcdir/configure"; then
  804.  
  805.       # If neither matched, then we have a broken ls.  This can happen
  806.       # if, for instance, CONFIG_SHELL is bash and it inherits a
  807.       # broken ls alias from the environment.  This has actually
  808.       # happened.  Such a system could not be considered "sane".
  809.       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  810. alias in your environment" 1>&2; exit 1; }
  811.    fi
  812.  
  813.    test "$2" = conftestfile
  814.    )
  815. then
  816.    # Ok.
  817.    :
  818. else
  819.    { echo "configure: error: newly created file is older than distributed files!
  820. Check your system clock" 1>&2; exit 1; }
  821. fi
  822. rm -f conftest*
  823. echo "$ac_t""yes" 1>&6
  824. if test "$program_transform_name" = s,x,x,; then
  825.   program_transform_name=
  826. else
  827.   # Double any \ or $.  echo might interpret backslashes.
  828.   cat <<\EOF_SED > conftestsed
  829. s,\\,\\\\,g; s,\$,$$,g
  830. EOF_SED
  831.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  832.   rm -f conftestsed
  833. fi
  834. test "$program_prefix" != NONE &&
  835.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  836. # Use a double $ so make ignores it.
  837. test "$program_suffix" != NONE &&
  838.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  839.  
  840. # sed with no file args requires a program.
  841. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  842.  
  843. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  844. echo "configure:845: checking whether ${MAKE-make} sets \${MAKE}" >&5
  845. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  846. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  847.   echo $ac_n "(cached) $ac_c" 1>&6
  848. else
  849.   cat > conftestmake <<\EOF
  850. all:
  851.     @echo 'ac_maketemp="${MAKE}"'
  852. EOF
  853. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  854. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  855. if test -n "$ac_maketemp"; then
  856.   eval ac_cv_prog_make_${ac_make}_set=yes
  857. else
  858.   eval ac_cv_prog_make_${ac_make}_set=no
  859. fi
  860. rm -f conftestmake
  861. fi
  862. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  863.   echo "$ac_t""yes" 1>&6
  864.   SET_MAKE=
  865. else
  866.   echo "$ac_t""no" 1>&6
  867.   SET_MAKE="MAKE=${MAKE-make}"
  868. fi
  869.  
  870.  
  871. PACKAGE=libvorbis
  872.  
  873. VERSION=1.0rc3
  874.  
  875. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  876.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  877. fi
  878. cat >> confdefs.h <<EOF
  879. #define PACKAGE "$PACKAGE"
  880. EOF
  881.  
  882. cat >> confdefs.h <<EOF
  883. #define VERSION "$VERSION"
  884. EOF
  885.  
  886.  
  887.  
  888. missing_dir=`cd $ac_aux_dir && pwd`
  889. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  890. echo "configure:891: checking for working aclocal" >&5
  891. # Run test in a subshell; some versions of sh will print an error if
  892. # an executable is not found, even if stderr is redirected.
  893. # Redirect stdin to placate older versions of autoconf.  Sigh.
  894. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  895.    ACLOCAL=aclocal
  896.    echo "$ac_t""found" 1>&6
  897. else
  898.    ACLOCAL="$missing_dir/missing aclocal"
  899.    echo "$ac_t""missing" 1>&6
  900. fi
  901.  
  902. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  903. echo "configure:904: checking for working autoconf" >&5
  904. # Run test in a subshell; some versions of sh will print an error if
  905. # an executable is not found, even if stderr is redirected.
  906. # Redirect stdin to placate older versions of autoconf.  Sigh.
  907. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  908.    AUTOCONF=autoconf
  909.    echo "$ac_t""found" 1>&6
  910. else
  911.    AUTOCONF="$missing_dir/missing autoconf"
  912.    echo "$ac_t""missing" 1>&6
  913. fi
  914.  
  915. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  916. echo "configure:917: checking for working automake" >&5
  917. # Run test in a subshell; some versions of sh will print an error if
  918. # an executable is not found, even if stderr is redirected.
  919. # Redirect stdin to placate older versions of autoconf.  Sigh.
  920. if (automake --version) < /dev/null > /dev/null 2>&1; then
  921.    AUTOMAKE=automake
  922.    echo "$ac_t""found" 1>&6
  923. else
  924.    AUTOMAKE="$missing_dir/missing automake"
  925.    echo "$ac_t""missing" 1>&6
  926. fi
  927.  
  928. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  929. echo "configure:930: checking for working autoheader" >&5
  930. # Run test in a subshell; some versions of sh will print an error if
  931. # an executable is not found, even if stderr is redirected.
  932. # Redirect stdin to placate older versions of autoconf.  Sigh.
  933. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  934.    AUTOHEADER=autoheader
  935.    echo "$ac_t""found" 1>&6
  936. else
  937.    AUTOHEADER="$missing_dir/missing autoheader"
  938.    echo "$ac_t""missing" 1>&6
  939. fi
  940.  
  941. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  942. echo "configure:943: checking for working makeinfo" >&5
  943. # Run test in a subshell; some versions of sh will print an error if
  944. # an executable is not found, even if stderr is redirected.
  945. # Redirect stdin to placate older versions of autoconf.  Sigh.
  946. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  947.    MAKEINFO=makeinfo
  948.    echo "$ac_t""found" 1>&6
  949. else
  950.    MAKEINFO="$missing_dir/missing makeinfo"
  951.    echo "$ac_t""missing" 1>&6
  952. fi
  953.  
  954.  
  955.  
  956.  
  957. V_LIB_CURRENT=1
  958. V_LIB_REVISION=0
  959. V_LIB_AGE=1
  960. VF_LIB_CURRENT=2
  961. VF_LIB_REVISION=0
  962. VF_LIB_AGE=2
  963. VE_LIB_CURRENT=1
  964. VE_LIB_REVISION=0
  965. VE_LIB_AGE=1
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977. cflags_save="$CFLAGS"
  978. # Extract the first word of "gcc", so it can be a program name with args.
  979. set dummy gcc; ac_word=$2
  980. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  981. echo "configure:982: checking for $ac_word" >&5
  982. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  983.   echo $ac_n "(cached) $ac_c" 1>&6
  984. else
  985.   if test -n "$CC"; then
  986.   ac_cv_prog_CC="$CC" # Let the user override the test.
  987. else
  988.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  989.   ac_dummy="$PATH"
  990.   for ac_dir in $ac_dummy; do
  991.     test -z "$ac_dir" && ac_dir=.
  992.     if test -f $ac_dir/$ac_word; then
  993.       ac_cv_prog_CC="gcc"
  994.       break
  995.     fi
  996.   done
  997.   IFS="$ac_save_ifs"
  998. fi
  999. fi
  1000. CC="$ac_cv_prog_CC"
  1001. if test -n "$CC"; then
  1002.   echo "$ac_t""$CC" 1>&6
  1003. else
  1004.   echo "$ac_t""no" 1>&6
  1005. fi
  1006.  
  1007. if test -z "$CC"; then
  1008.   # Extract the first word of "cc", so it can be a program name with args.
  1009. set dummy cc; ac_word=$2
  1010. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1011. echo "configure:1012: checking for $ac_word" >&5
  1012. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1013.   echo $ac_n "(cached) $ac_c" 1>&6
  1014. else
  1015.   if test -n "$CC"; then
  1016.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1017. else
  1018.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1019.   ac_prog_rejected=no
  1020.   ac_dummy="$PATH"
  1021.   for ac_dir in $ac_dummy; do
  1022.     test -z "$ac_dir" && ac_dir=.
  1023.     if test -f $ac_dir/$ac_word; then
  1024.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1025.         ac_prog_rejected=yes
  1026.     continue
  1027.       fi
  1028.       ac_cv_prog_CC="cc"
  1029.       break
  1030.     fi
  1031.   done
  1032.   IFS="$ac_save_ifs"
  1033. if test $ac_prog_rejected = yes; then
  1034.   # We found a bogon in the path, so make sure we never use it.
  1035.   set dummy $ac_cv_prog_CC
  1036.   shift
  1037.   if test $# -gt 0; then
  1038.     # We chose a different compiler from the bogus one.
  1039.     # However, it has the same basename, so the bogon will be chosen
  1040.     # first if we set CC to just the basename; use the full file name.
  1041.     shift
  1042.     set dummy "$ac_dir/$ac_word" "$@"
  1043.     shift
  1044.     ac_cv_prog_CC="$@"
  1045.   fi
  1046. fi
  1047. fi
  1048. fi
  1049. CC="$ac_cv_prog_CC"
  1050. if test -n "$CC"; then
  1051.   echo "$ac_t""$CC" 1>&6
  1052. else
  1053.   echo "$ac_t""no" 1>&6
  1054. fi
  1055.  
  1056.   if test -z "$CC"; then
  1057.     case "`uname -s`" in
  1058.     *win32* | *WIN32*)
  1059.       # Extract the first word of "cl", so it can be a program name with args.
  1060. set dummy cl; ac_word=$2
  1061. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1062. echo "configure:1063: checking for $ac_word" >&5
  1063. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1064.   echo $ac_n "(cached) $ac_c" 1>&6
  1065. else
  1066.   if test -n "$CC"; then
  1067.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1068. else
  1069.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1070.   ac_dummy="$PATH"
  1071.   for ac_dir in $ac_dummy; do
  1072.     test -z "$ac_dir" && ac_dir=.
  1073.     if test -f $ac_dir/$ac_word; then
  1074.       ac_cv_prog_CC="cl"
  1075.       break
  1076.     fi
  1077.   done
  1078.   IFS="$ac_save_ifs"
  1079. fi
  1080. fi
  1081. CC="$ac_cv_prog_CC"
  1082. if test -n "$CC"; then
  1083.   echo "$ac_t""$CC" 1>&6
  1084. else
  1085.   echo "$ac_t""no" 1>&6
  1086. fi
  1087.  ;;
  1088.     esac
  1089.   fi
  1090.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  1091. fi
  1092.  
  1093. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1094. echo "configure:1095: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1095.  
  1096. ac_ext=c
  1097. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1098. ac_cpp='$CPP $CPPFLAGS'
  1099. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1100. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1101. cross_compiling=$ac_cv_prog_cc_cross
  1102.  
  1103. cat > conftest.$ac_ext << EOF
  1104.  
  1105. #line 1106 "configure"
  1106. #include "confdefs.h"
  1107.  
  1108. main(){return(0);}
  1109. EOF
  1110. if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1111.   ac_cv_prog_cc_works=yes
  1112.   # If we can't run a trivial program, we are probably using a cross compiler.
  1113.   if (./conftest; exit) 2>/dev/null; then
  1114.     ac_cv_prog_cc_cross=no
  1115.   else
  1116.     ac_cv_prog_cc_cross=yes
  1117.   fi
  1118. else
  1119.   echo "configure: failed program was:" >&5
  1120.   cat conftest.$ac_ext >&5
  1121.   ac_cv_prog_cc_works=no
  1122. fi
  1123. rm -fr conftest*
  1124. ac_ext=c
  1125. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1126. ac_cpp='$CPP $CPPFLAGS'
  1127. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1128. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1129. cross_compiling=$ac_cv_prog_cc_cross
  1130.  
  1131. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1132. if test $ac_cv_prog_cc_works = no; then
  1133.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  1134. fi
  1135. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1136. echo "configure:1137: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1137. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1138. cross_compiling=$ac_cv_prog_cc_cross
  1139.  
  1140. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1141. echo "configure:1142: checking whether we are using GNU C" >&5
  1142. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1143.   echo $ac_n "(cached) $ac_c" 1>&6
  1144. else
  1145.   cat > conftest.c <<EOF
  1146. #ifdef __GNUC__
  1147.   yes;
  1148. #endif
  1149. EOF
  1150. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1151.   ac_cv_prog_gcc=yes
  1152. else
  1153.   ac_cv_prog_gcc=no
  1154. fi
  1155. fi
  1156.  
  1157. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1158.  
  1159. if test $ac_cv_prog_gcc = yes; then
  1160.   GCC=yes
  1161. else
  1162.   GCC=
  1163. fi
  1164.  
  1165. ac_test_CFLAGS="${CFLAGS+set}"
  1166. ac_save_CFLAGS="$CFLAGS"
  1167. CFLAGS=
  1168. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1169. echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
  1170. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1171.   echo $ac_n "(cached) $ac_c" 1>&6
  1172. else
  1173.   echo 'void f(){}' > conftest.c
  1174. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1175.   ac_cv_prog_cc_g=yes
  1176. else
  1177.   ac_cv_prog_cc_g=no
  1178. fi
  1179. rm -f conftest*
  1180.  
  1181. fi
  1182.  
  1183. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1184. if test "$ac_test_CFLAGS" = set; then
  1185.   CFLAGS="$ac_save_CFLAGS"
  1186. elif test $ac_cv_prog_cc_g = yes; then
  1187.   if test "$GCC" = yes; then
  1188.     CFLAGS="-g -O2"
  1189.   else
  1190.     CFLAGS="-g"
  1191.   fi
  1192. else
  1193.   if test "$GCC" = yes; then
  1194.     CFLAGS="-O2"
  1195.   else
  1196.     CFLAGS=
  1197.   fi
  1198. fi
  1199.  
  1200. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1201. echo "configure:1202: checking how to run the C preprocessor" >&5
  1202. # On Suns, sometimes $CPP names a directory.
  1203. if test -n "$CPP" && test -d "$CPP"; then
  1204.   CPP=
  1205. fi
  1206. if test -z "$CPP"; then
  1207. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1208.   echo $ac_n "(cached) $ac_c" 1>&6
  1209. else
  1210.     # This must be in double quotes, not single quotes, because CPP may get
  1211.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1212.   CPP="${CC-cc} -E"
  1213.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1214.   # not just through cpp.
  1215.   cat > conftest.$ac_ext <<EOF
  1216. #line 1217 "configure"
  1217. #include "confdefs.h"
  1218. #include <assert.h>
  1219. Syntax Error
  1220. EOF
  1221. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1222. { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1223. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1224. if test -z "$ac_err"; then
  1225.   :
  1226. else
  1227.   echo "$ac_err" >&5
  1228.   echo "configure: failed program was:" >&5
  1229.   cat conftest.$ac_ext >&5
  1230.   rm -rf conftest*
  1231.   CPP="${CC-cc} -E -traditional-cpp"
  1232.   cat > conftest.$ac_ext <<EOF
  1233. #line 1234 "configure"
  1234. #include "confdefs.h"
  1235. #include <assert.h>
  1236. Syntax Error
  1237. EOF
  1238. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1239. { (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1240. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1241. if test -z "$ac_err"; then
  1242.   :
  1243. else
  1244.   echo "$ac_err" >&5
  1245.   echo "configure: failed program was:" >&5
  1246.   cat conftest.$ac_ext >&5
  1247.   rm -rf conftest*
  1248.   CPP="${CC-cc} -nologo -E"
  1249.   cat > conftest.$ac_ext <<EOF
  1250. #line 1251 "configure"
  1251. #include "confdefs.h"
  1252. #include <assert.h>
  1253. Syntax Error
  1254. EOF
  1255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1256. { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1257. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1258. if test -z "$ac_err"; then
  1259.   :
  1260. else
  1261.   echo "$ac_err" >&5
  1262.   echo "configure: failed program was:" >&5
  1263.   cat conftest.$ac_ext >&5
  1264.   rm -rf conftest*
  1265.   CPP=/lib/cpp
  1266. fi
  1267. rm -f conftest*
  1268. fi
  1269. rm -f conftest*
  1270. fi
  1271. rm -f conftest*
  1272.   ac_cv_prog_CPP="$CPP"
  1273. fi
  1274.   CPP="$ac_cv_prog_CPP"
  1275. else
  1276.   ac_cv_prog_CPP="$CPP"
  1277. fi
  1278. echo "$ac_t""$CPP" 1>&6
  1279.  
  1280. CFLAGS="$cflags_save"
  1281.  
  1282. # Find the correct PATH separator.  Usually this is `:', but
  1283. # DJGPP uses `;' like DOS.
  1284. if test "X${PATH_SEPARATOR+set}" != Xset; then
  1285.   UNAME=${UNAME-`uname 2>/dev/null`}
  1286.   case X$UNAME in
  1287.     *-DOS) lt_cv_sys_path_separator=';' ;;
  1288.     *)     lt_cv_sys_path_separator=':' ;;
  1289.   esac
  1290.   PATH_SEPARATOR=$lt_cv_sys_path_separator
  1291. fi
  1292.  
  1293. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1294. echo "configure:1295: checking for Cygwin environment" >&5
  1295. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1296.   echo $ac_n "(cached) $ac_c" 1>&6
  1297. else
  1298.   cat > conftest.$ac_ext <<EOF
  1299. #line 1300 "configure"
  1300. #include "confdefs.h"
  1301.  
  1302. int main() {
  1303.  
  1304. #ifndef __CYGWIN__
  1305. #define __CYGWIN__ __CYGWIN32__
  1306. #endif
  1307. return __CYGWIN__;
  1308. ; return 0; }
  1309. EOF
  1310. if { (eval echo configure:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1311.   rm -rf conftest*
  1312.   ac_cv_cygwin=yes
  1313. else
  1314.   echo "configure: failed program was:" >&5
  1315.   cat conftest.$ac_ext >&5
  1316.   rm -rf conftest*
  1317.   ac_cv_cygwin=no
  1318. fi
  1319. rm -f conftest*
  1320. rm -f conftest*
  1321. fi
  1322.  
  1323. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1324. CYGWIN=
  1325. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1326. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1327. echo "configure:1328: checking for mingw32 environment" >&5
  1328. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1329.   echo $ac_n "(cached) $ac_c" 1>&6
  1330. else
  1331.   cat > conftest.$ac_ext <<EOF
  1332. #line 1333 "configure"
  1333. #include "confdefs.h"
  1334.  
  1335. int main() {
  1336. return __MINGW32__;
  1337. ; return 0; }
  1338. EOF
  1339. if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1340.   rm -rf conftest*
  1341.   ac_cv_mingw32=yes
  1342. else
  1343.   echo "configure: failed program was:" >&5
  1344.   cat conftest.$ac_ext >&5
  1345.   rm -rf conftest*
  1346.   ac_cv_mingw32=no
  1347. fi
  1348. rm -f conftest*
  1349. rm -f conftest*
  1350. fi
  1351.  
  1352. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1353. MINGW32=
  1354. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1355. # Check whether --enable-shared or --disable-shared was given.
  1356. if test "${enable_shared+set}" = set; then
  1357.   enableval="$enable_shared"
  1358.   p=${PACKAGE-default}
  1359. case $enableval in
  1360. yes) enable_shared=yes ;;
  1361. no) enable_shared=no ;;
  1362. *)
  1363.   enable_shared=no
  1364.   # Look at the argument we got.  We use all the common list separators.
  1365.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1366.   for pkg in $enableval; do
  1367.     if test "X$pkg" = "X$p"; then
  1368.       enable_shared=yes
  1369.     fi
  1370.   done
  1371.   IFS="$ac_save_ifs"
  1372.   ;;
  1373. esac
  1374. else
  1375.   enable_shared=yes
  1376. fi
  1377.  
  1378. # Check whether --enable-static or --disable-static was given.
  1379. if test "${enable_static+set}" = set; then
  1380.   enableval="$enable_static"
  1381.   p=${PACKAGE-default}
  1382. case $enableval in
  1383. yes) enable_static=yes ;;
  1384. no) enable_static=no ;;
  1385. *)
  1386.   enable_static=no
  1387.   # Look at the argument we got.  We use all the common list separators.
  1388.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1389.   for pkg in $enableval; do
  1390.     if test "X$pkg" = "X$p"; then
  1391.       enable_static=yes
  1392.     fi
  1393.   done
  1394.   IFS="$ac_save_ifs"
  1395.   ;;
  1396. esac
  1397. else
  1398.   enable_static=yes
  1399. fi
  1400.  
  1401. # Check whether --enable-fast-install or --disable-fast-install was given.
  1402. if test "${enable_fast_install+set}" = set; then
  1403.   enableval="$enable_fast_install"
  1404.   p=${PACKAGE-default}
  1405. case $enableval in
  1406. yes) enable_fast_install=yes ;;
  1407. no) enable_fast_install=no ;;
  1408. *)
  1409.   enable_fast_install=no
  1410.   # Look at the argument we got.  We use all the common list separators.
  1411.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  1412.   for pkg in $enableval; do
  1413.     if test "X$pkg" = "X$p"; then
  1414.       enable_fast_install=yes
  1415.     fi
  1416.   done
  1417.   IFS="$ac_save_ifs"
  1418.   ;;
  1419. esac
  1420. else
  1421.   enable_fast_install=yes
  1422. fi
  1423.  
  1424.  
  1425. # Make sure we can run config.sub.
  1426. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1427. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1428. fi
  1429.  
  1430. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1431. echo "configure:1432: checking host system type" >&5
  1432.  
  1433. host_alias=$host
  1434. case "$host_alias" in
  1435. NONE)
  1436.   case $nonopt in
  1437.   NONE)
  1438.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1439.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1440.     fi ;;
  1441.   *) host_alias=$nonopt ;;
  1442.   esac ;;
  1443. esac
  1444.  
  1445. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1446. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1447. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1448. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1449. echo "$ac_t""$host" 1>&6
  1450.  
  1451. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1452. echo "configure:1453: checking build system type" >&5
  1453.  
  1454. build_alias=$build
  1455. case "$build_alias" in
  1456. NONE)
  1457.   case $nonopt in
  1458.   NONE) build_alias=$host_alias ;;
  1459.   *) build_alias=$nonopt ;;
  1460.   esac ;;
  1461. esac
  1462.  
  1463. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1464. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1465. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1466. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1467. echo "$ac_t""$build" 1>&6
  1468.  
  1469. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  1470. if test "${with_gnu_ld+set}" = set; then
  1471.   withval="$with_gnu_ld"
  1472.   test "$withval" = no || with_gnu_ld=yes
  1473. else
  1474.   with_gnu_ld=no
  1475. fi
  1476.  
  1477. ac_prog=ld
  1478. if test "$GCC" = yes; then
  1479.   # Check if gcc -print-prog-name=ld gives a path.
  1480.   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  1481. echo "configure:1482: checking for ld used by GCC" >&5
  1482.   case $host in
  1483.   *-*-mingw*)
  1484.     # gcc leaves a trailing carriage return which upsets mingw
  1485.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  1486.   *)
  1487.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  1488.   esac
  1489.   case $ac_prog in
  1490.     # Accept absolute paths.
  1491.     [\\/]* | [A-Za-z]:[\\/]*)
  1492.       re_direlt='/[^/][^/]*/\.\./'
  1493.       # Canonicalize the path of ld
  1494.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1495.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1496.     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1497.       done
  1498.       test -z "$LD" && LD="$ac_prog"
  1499.       ;;
  1500.   "")
  1501.     # If it fails, then pretend we aren't using GCC.
  1502.     ac_prog=ld
  1503.     ;;
  1504.   *)
  1505.     # If it is relative, then search for the first ld in PATH.
  1506.     with_gnu_ld=unknown
  1507.     ;;
  1508.   esac
  1509. elif test "$with_gnu_ld" = yes; then
  1510.   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  1511. echo "configure:1512: checking for GNU ld" >&5
  1512. else
  1513.   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1514. echo "configure:1515: checking for non-GNU ld" >&5
  1515. fi
  1516. if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  1517.   echo $ac_n "(cached) $ac_c" 1>&6
  1518. else
  1519.   if test -z "$LD"; then
  1520.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1521.   for ac_dir in $PATH; do
  1522.     test -z "$ac_dir" && ac_dir=.
  1523.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1524.       lt_cv_path_LD="$ac_dir/$ac_prog"
  1525.       # Check to see if the program is GNU ld.  I'd rather use --version,
  1526.       # but apparently some GNU ld's only accept -v.
  1527.       # Break only if it was the GNU/non-GNU ld that we prefer.
  1528.       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1529.     test "$with_gnu_ld" != no && break
  1530.       else
  1531.     test "$with_gnu_ld" != yes && break
  1532.       fi
  1533.     fi
  1534.   done
  1535.   IFS="$ac_save_ifs"
  1536. else
  1537.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  1538. fi
  1539. fi
  1540.  
  1541. LD="$lt_cv_path_LD"
  1542. if test -n "$LD"; then
  1543.   echo "$ac_t""$LD" 1>&6
  1544. else
  1545.   echo "$ac_t""no" 1>&6
  1546. fi
  1547. test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  1548. echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  1549. echo "configure:1550: checking if the linker ($LD) is GNU ld" >&5
  1550. if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  1551.   echo $ac_n "(cached) $ac_c" 1>&6
  1552. else
  1553.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1554. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1555.   lt_cv_prog_gnu_ld=yes
  1556. else
  1557.   lt_cv_prog_gnu_ld=no
  1558. fi
  1559. fi
  1560.  
  1561. echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  1562. with_gnu_ld=$lt_cv_prog_gnu_ld
  1563.  
  1564.  
  1565. echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  1566. echo "configure:1567: checking for $LD option to reload object files" >&5
  1567. if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  1568.   echo $ac_n "(cached) $ac_c" 1>&6
  1569. else
  1570.   lt_cv_ld_reload_flag='-r'
  1571. fi
  1572.  
  1573. echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  1574. reload_flag=$lt_cv_ld_reload_flag
  1575. test -n "$reload_flag" && reload_flag=" $reload_flag"
  1576.  
  1577. echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  1578. echo "configure:1579: checking for BSD-compatible nm" >&5
  1579. if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  1580.   echo $ac_n "(cached) $ac_c" 1>&6
  1581. else
  1582.   if test -n "$NM"; then
  1583.   # Let the user override the test.
  1584.   lt_cv_path_NM="$NM"
  1585. else
  1586.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1587.   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1588.     test -z "$ac_dir" && ac_dir=.
  1589.     tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1590.     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  1591.       # Check to see if the nm accepts a BSD-compat flag.
  1592.       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1593.       #   nm: unknown option "B" ignored
  1594.       # Tru64's nm complains that /dev/null is an invalid object file
  1595.       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  1596.     lt_cv_path_NM="$tmp_nm -B"
  1597.     break
  1598.       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1599.     lt_cv_path_NM="$tmp_nm -p"
  1600.     break
  1601.       else
  1602.     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  1603.     continue # so that we can try to find one that supports BSD flags
  1604.       fi
  1605.     fi
  1606.   done
  1607.   IFS="$ac_save_ifs"
  1608.   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1609. fi
  1610. fi
  1611.  
  1612. NM="$lt_cv_path_NM"
  1613. echo "$ac_t""$NM" 1>&6
  1614.  
  1615. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  1616. echo "configure:1617: checking whether ln -s works" >&5
  1617. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  1618.   echo $ac_n "(cached) $ac_c" 1>&6
  1619. else
  1620.   rm -f conftestdata
  1621. if ln -s X conftestdata 2>/dev/null
  1622. then
  1623.   rm -f conftestdata
  1624.   ac_cv_prog_LN_S="ln -s"
  1625. else
  1626.   ac_cv_prog_LN_S=ln
  1627. fi
  1628. fi
  1629. LN_S="$ac_cv_prog_LN_S"
  1630. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  1631.   echo "$ac_t""yes" 1>&6
  1632. else
  1633.   echo "$ac_t""no" 1>&6
  1634. fi
  1635.  
  1636. echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  1637. echo "configure:1638: checking how to recognise dependant libraries" >&5
  1638. if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  1639.   echo $ac_n "(cached) $ac_c" 1>&6
  1640. else
  1641.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  1642. lt_cv_file_magic_test_file=
  1643. lt_cv_deplibs_check_method='unknown'
  1644. # Need to set the preceding variable on all platforms that support
  1645. # interlibrary dependencies.
  1646. # 'none' -- dependencies not supported.
  1647. # `unknown' -- same as none, but documents that we really don't know.
  1648. # 'pass_all' -- all dependencies passed with no checks.
  1649. # 'test_compile' -- check by making test program.
  1650. # 'file_magic [[regex]]' -- check by looking for files in library path
  1651. # which responds to the $file_magic_cmd with a given egrep regex.
  1652. # If you have `file' or equivalent on your system and you're not sure
  1653. # whether `pass_all' will *always* work, you probably want this one.
  1654.  
  1655. case $host_os in
  1656. aix4* | aix5*)
  1657.   lt_cv_deplibs_check_method=pass_all
  1658.   ;;
  1659.  
  1660. beos*)
  1661.   lt_cv_deplibs_check_method=pass_all
  1662.   ;;
  1663.  
  1664. bsdi4*)
  1665.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  1666.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  1667.   lt_cv_file_magic_test_file=/shlib/libc.so
  1668.   ;;
  1669.  
  1670. cygwin* | mingw* | pw32*)
  1671.   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1672.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  1673.   ;;
  1674.  
  1675. darwin* | rhapsody*)
  1676.   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  1677.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  1678.   case "$host_os" in
  1679.   rhapsody* | darwin1.[012])
  1680.     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  1681.     ;;
  1682.   *) # Darwin 1.3 on
  1683.     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  1684.     ;;
  1685.   esac
  1686.   ;;
  1687.  
  1688. freebsd*)
  1689.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1690.     case $host_cpu in
  1691.     i*86 )
  1692.       # Not sure whether the presence of OpenBSD here was a mistake.
  1693.       # Let's accept both of them until this is cleared up.
  1694.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  1695.       lt_cv_file_magic_cmd=/usr/bin/file
  1696.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1697.       ;;
  1698.     esac
  1699.   else
  1700.     lt_cv_deplibs_check_method=pass_all
  1701.   fi
  1702.   ;;
  1703.  
  1704. gnu*)
  1705.   lt_cv_deplibs_check_method=pass_all
  1706.   ;;
  1707.  
  1708. hpux10.20*|hpux11*)
  1709.   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  1710.   lt_cv_file_magic_cmd=/usr/bin/file
  1711.   lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1712.   ;;
  1713.  
  1714. irix5* | irix6* | nonstopux*)
  1715.   case $host_os in
  1716.   irix5* | nonstopux*)
  1717.     # this will be overridden with pass_all, but let us keep it just in case
  1718.     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1719.     ;;
  1720.   *)
  1721.     case $LD in
  1722.     *-32|*"-32 ") libmagic=32-bit;;
  1723.     *-n32|*"-n32 ") libmagic=N32;;
  1724.     *-64|*"-64 ") libmagic=64-bit;;
  1725.     *) libmagic=never-match;;
  1726.     esac
  1727.     # this will be overridden with pass_all, but let us keep it just in case
  1728.     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  1729.     ;;
  1730.   esac
  1731.   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1732.   lt_cv_deplibs_check_method=pass_all
  1733.   ;;
  1734.  
  1735. # This must be Linux ELF.
  1736. linux-gnu*)
  1737.   case $host_cpu in
  1738.   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
  1739.     lt_cv_deplibs_check_method=pass_all ;;
  1740.   *)
  1741.     # glibc up to 2.1.1 does not perform some relocations on ARM
  1742.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
  1743.   esac
  1744.   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1745.   ;;
  1746.  
  1747. netbsd*)
  1748.   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1749.     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  1750.   else
  1751.     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  1752.   fi
  1753.   ;;
  1754.  
  1755. newos6*)
  1756.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  1757.   lt_cv_file_magic_cmd=/usr/bin/file
  1758.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1759.   ;;
  1760.  
  1761. openbsd*)
  1762.   lt_cv_file_magic_cmd=/usr/bin/file
  1763.   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1764.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1765.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  1766.   else
  1767.     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1768.   fi
  1769.   ;;
  1770.  
  1771. osf3* | osf4* | osf5*)
  1772.   # this will be overridden with pass_all, but let us keep it just in case
  1773.   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1774.   lt_cv_file_magic_test_file=/shlib/libc.so
  1775.   lt_cv_deplibs_check_method=pass_all
  1776.   ;;
  1777.  
  1778. sco3.2v5*)
  1779.   lt_cv_deplibs_check_method=pass_all
  1780.   ;;
  1781.  
  1782. solaris*)
  1783.   lt_cv_deplibs_check_method=pass_all
  1784.   lt_cv_file_magic_test_file=/lib/libc.so
  1785.   ;;
  1786.  
  1787. sysv5uw[78]* | sysv4*uw2*)
  1788.   lt_cv_deplibs_check_method=pass_all
  1789.   ;;
  1790.  
  1791. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1792.   case $host_vendor in
  1793.   motorola)
  1794.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  1795.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1796.     ;;
  1797.   ncr)
  1798.     lt_cv_deplibs_check_method=pass_all
  1799.     ;;
  1800.   sequent)
  1801.     lt_cv_file_magic_cmd='/bin/file'
  1802.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1803.     ;;
  1804.   sni)
  1805.     lt_cv_file_magic_cmd='/bin/file'
  1806.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  1807.     lt_cv_file_magic_test_file=/lib/libc.so
  1808.     ;;
  1809.   esac
  1810.   ;;
  1811. esac
  1812.  
  1813. fi
  1814.  
  1815. echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  1816. file_magic_cmd=$lt_cv_file_magic_cmd
  1817. deplibs_check_method=$lt_cv_deplibs_check_method
  1818.  
  1819. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  1820. echo "configure:1821: checking for object suffix" >&5
  1821. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  1822.   echo $ac_n "(cached) $ac_c" 1>&6
  1823. else
  1824.   rm -f conftest*
  1825. echo 'int i = 1;' > conftest.$ac_ext
  1826. if { (eval echo configure:1827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1827.   for ac_file in conftest.*; do
  1828.     case $ac_file in
  1829.     *.c) ;;
  1830.     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  1831.     esac
  1832.   done
  1833. else
  1834.   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  1835. fi
  1836. rm -f conftest*
  1837. fi
  1838.  
  1839. echo "$ac_t""$ac_cv_objext" 1>&6
  1840. OBJEXT=$ac_cv_objext
  1841. ac_objext=$ac_cv_objext
  1842.  
  1843.  
  1844.  
  1845. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1846. echo "configure:1847: checking for executable suffix" >&5
  1847. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1848.   echo $ac_n "(cached) $ac_c" 1>&6
  1849. else
  1850.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  1851.   ac_cv_exeext=.exe
  1852. else
  1853.   rm -f conftest*
  1854.   echo 'int main () { return 0; }' > conftest.$ac_ext
  1855.   ac_cv_exeext=
  1856.   if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1857.     for file in conftest.*; do
  1858.       case $file in
  1859.       *.c | *.o | *.obj) ;;
  1860.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1861.       esac
  1862.     done
  1863.   else
  1864.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1865.   fi
  1866.   rm -f conftest*
  1867.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1868. fi
  1869. fi
  1870.  
  1871. EXEEXT=""
  1872. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1873. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1874. ac_exeext=$EXEEXT
  1875.  
  1876. if test $host != $build; then
  1877.   ac_tool_prefix=${host_alias}-
  1878. else
  1879.   ac_tool_prefix=
  1880. fi
  1881.  
  1882.  
  1883.  
  1884.  
  1885. # Check for command to grab the raw symbol name followed by C symbol from nm.
  1886. echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  1887. echo "configure:1888: checking command to parse $NM output" >&5
  1888. if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  1889.   echo $ac_n "(cached) $ac_c" 1>&6
  1890. else
  1891.   
  1892. # These are sane defaults that work on at least a few old systems.
  1893. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  1894.  
  1895. # Character class describing NM global symbol codes.
  1896. symcode='[BCDEGRST]'
  1897.  
  1898. # Regexp to match symbols that can be accessed directly from C.
  1899. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  1900.  
  1901. # Transform the above into a raw symbol and a C symbol.
  1902. symxfrm='\1 \2\3 \3'
  1903.  
  1904. # Transform an extracted symbol line into a proper C declaration
  1905. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1906.  
  1907. # Transform an extracted symbol line into symbol name and symbol address
  1908. lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1909.  
  1910. # Define system-specific variables.
  1911. case $host_os in
  1912. aix*)
  1913.   symcode='[BCDT]'
  1914.   ;;
  1915. cygwin* | mingw* | pw32*)
  1916.   symcode='[ABCDGISTW]'
  1917.   ;;
  1918. hpux*) # Its linker distinguishes data from code symbols
  1919.   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1920.   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1921.   ;;
  1922. irix* | nonstopux*)
  1923.   symcode='[BCDEGRST]'
  1924.   ;;
  1925. solaris* | sysv5*)
  1926.   symcode='[BDT]'
  1927.   ;;
  1928. sysv4)
  1929.   symcode='[DFNSTU]'
  1930.   ;;
  1931. esac
  1932.  
  1933. # Handle CRLF in mingw tool chain
  1934. opt_cr=
  1935. case $host_os in
  1936. mingw*)
  1937.   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1938.   ;;
  1939. esac
  1940.  
  1941. # If we're using GNU nm, then use its standard symbol codes.
  1942. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1943.   symcode='[ABCDGISTW]'
  1944. fi
  1945.  
  1946. # Try without a prefix undercore, then with it.
  1947. for ac_symprfx in "" "_"; do
  1948.  
  1949.   # Write the raw and C identifiers.
  1950. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][     ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1951.  
  1952.   # Check to see that the pipe works correctly.
  1953.   pipe_works=no
  1954.   rm -f conftest*
  1955.   cat > conftest.$ac_ext <<EOF
  1956. #ifdef __cplusplus
  1957. extern "C" {
  1958. #endif
  1959. char nm_test_var;
  1960. void nm_test_func(){}
  1961. #ifdef __cplusplus
  1962. }
  1963. #endif
  1964. int main(){nm_test_var='a';nm_test_func();return(0);}
  1965. EOF
  1966.  
  1967.   if { (eval echo configure:1968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1968.     # Now try to grab the symbols.
  1969.     nlist=conftest.nm
  1970.     if { (eval echo configure:1971: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
  1971.       # Try sorting and uniquifying the output.
  1972.       if sort "$nlist" | uniq > "$nlist"T; then
  1973.     mv -f "$nlist"T "$nlist"
  1974.       else
  1975.     rm -f "$nlist"T
  1976.       fi
  1977.  
  1978.       # Make sure that we snagged all the symbols we need.
  1979.       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1980.     if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1981.       cat <<EOF > conftest.$ac_ext
  1982. #ifdef __cplusplus
  1983. extern "C" {
  1984. #endif
  1985.  
  1986. EOF
  1987.       # Now generate the symbol file.
  1988.       eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  1989.  
  1990.       cat <<EOF >> conftest.$ac_ext
  1991. #if defined (__STDC__) && __STDC__
  1992. # define lt_ptr void *
  1993. #else
  1994. # define lt_ptr char *
  1995. # define const
  1996. #endif
  1997.  
  1998. /* The mapping between symbol names and symbols. */
  1999. const struct {
  2000.   const char *name;
  2001.   lt_ptr address;
  2002. }
  2003. lt_preloaded_symbols[] =
  2004. {
  2005. EOF
  2006.       sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  2007.       cat <<\EOF >> conftest.$ac_ext
  2008.   {0, (lt_ptr) 0}
  2009. };
  2010.  
  2011. #ifdef __cplusplus
  2012. }
  2013. #endif
  2014. EOF
  2015.       # Now try linking the two files.
  2016.       mv conftest.$ac_objext conftstm.$ac_objext
  2017.       save_LIBS="$LIBS"
  2018.       save_CFLAGS="$CFLAGS"
  2019.       LIBS="conftstm.$ac_objext"
  2020.       CFLAGS="$CFLAGS$no_builtin_flag"
  2021.       if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  2022.         pipe_works=yes
  2023.       fi
  2024.       LIBS="$save_LIBS"
  2025.       CFLAGS="$save_CFLAGS"
  2026.     else
  2027.       echo "cannot find nm_test_func in $nlist" >&5
  2028.     fi
  2029.       else
  2030.     echo "cannot find nm_test_var in $nlist" >&5
  2031.       fi
  2032.     else
  2033.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  2034.     fi
  2035.   else
  2036.     echo "$progname: failed program was:" >&5
  2037.     cat conftest.$ac_ext >&5
  2038.   fi
  2039.   rm -f conftest* conftst*
  2040.  
  2041.   # Do not use the global_symbol_pipe unless it works.
  2042.   if test "$pipe_works" = yes; then
  2043.     break
  2044.   else
  2045.     lt_cv_sys_global_symbol_pipe=
  2046.   fi
  2047. done
  2048.  
  2049. fi
  2050.  
  2051. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  2052. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  2053.   global_symbol_to_cdecl=
  2054.   global_symbol_to_c_name_address=
  2055. else
  2056.   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  2057.   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  2058. fi
  2059. if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  2060. then
  2061.   echo "$ac_t""failed" 1>&6
  2062. else
  2063.   echo "$ac_t""ok" 1>&6
  2064. fi
  2065.  
  2066. for ac_hdr in dlfcn.h
  2067. do
  2068. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2069. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2070. echo "configure:2071: checking for $ac_hdr" >&5
  2071. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2072.   echo $ac_n "(cached) $ac_c" 1>&6
  2073. else
  2074.   cat > conftest.$ac_ext <<EOF
  2075. #line 2076 "configure"
  2076. #include "confdefs.h"
  2077. #include <$ac_hdr>
  2078. EOF
  2079. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2080. { (eval echo configure:2081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2081. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2082. if test -z "$ac_err"; then
  2083.   rm -rf conftest*
  2084.   eval "ac_cv_header_$ac_safe=yes"
  2085. else
  2086.   echo "$ac_err" >&5
  2087.   echo "configure: failed program was:" >&5
  2088.   cat conftest.$ac_ext >&5
  2089.   rm -rf conftest*
  2090.   eval "ac_cv_header_$ac_safe=no"
  2091. fi
  2092. rm -f conftest*
  2093. fi
  2094. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2095.   echo "$ac_t""yes" 1>&6
  2096.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2097.   cat >> confdefs.h <<EOF
  2098. #define $ac_tr_hdr 1
  2099. EOF
  2100.  
  2101. else
  2102.   echo "$ac_t""no" 1>&6
  2103. fi
  2104. done
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110. # Only perform the check for file, if the check method requires it
  2111. case $deplibs_check_method in
  2112. file_magic*)
  2113.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  2114.     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  2115. echo "configure:2116: checking for ${ac_tool_prefix}file" >&5
  2116. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2117.   echo $ac_n "(cached) $ac_c" 1>&6
  2118. else
  2119.   case $MAGIC_CMD in
  2120.   /*)
  2121.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2122.   ;;
  2123.   ?:/*)
  2124.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2125.   ;;
  2126.   *)
  2127.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  2128.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  2129.   ac_dummy="/usr/bin:$PATH"
  2130.   for ac_dir in $ac_dummy; do
  2131.     test -z "$ac_dir" && ac_dir=.
  2132.     if test -f $ac_dir/${ac_tool_prefix}file; then
  2133.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  2134.       if test -n "$file_magic_test_file"; then
  2135.     case $deplibs_check_method in
  2136.     "file_magic "*)
  2137.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2138.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2139.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2140.         egrep "$file_magic_regex" > /dev/null; then
  2141.         :
  2142.       else
  2143.         cat <<EOF 1>&2
  2144.  
  2145. *** Warning: the command libtool uses to detect shared libraries,
  2146. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2147. *** The result is that libtool may fail to recognize shared libraries
  2148. *** as such.  This will affect the creation of libtool libraries that
  2149. *** depend on shared libraries, but programs linked with such libtool
  2150. *** libraries will work regardless of this problem.  Nevertheless, you
  2151. *** may want to report the problem to your system manager and/or to
  2152. *** bug-libtool@gnu.org
  2153.  
  2154. EOF
  2155.       fi ;;
  2156.     esac
  2157.       fi
  2158.       break
  2159.     fi
  2160.   done
  2161.   IFS="$ac_save_ifs"
  2162.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  2163.   ;;
  2164. esac
  2165. fi
  2166.  
  2167. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2168. if test -n "$MAGIC_CMD"; then
  2169.   echo "$ac_t""$MAGIC_CMD" 1>&6
  2170. else
  2171.   echo "$ac_t""no" 1>&6
  2172. fi
  2173.  
  2174. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2175.   if test -n "$ac_tool_prefix"; then
  2176.     echo $ac_n "checking for file""... $ac_c" 1>&6
  2177. echo "configure:2178: checking for file" >&5
  2178. if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  2179.   echo $ac_n "(cached) $ac_c" 1>&6
  2180. else
  2181.   case $MAGIC_CMD in
  2182.   /*)
  2183.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2184.   ;;
  2185.   ?:/*)
  2186.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  2187.   ;;
  2188.   *)
  2189.   ac_save_MAGIC_CMD="$MAGIC_CMD"
  2190.   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
  2191.   ac_dummy="/usr/bin:$PATH"
  2192.   for ac_dir in $ac_dummy; do
  2193.     test -z "$ac_dir" && ac_dir=.
  2194.     if test -f $ac_dir/file; then
  2195.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  2196.       if test -n "$file_magic_test_file"; then
  2197.     case $deplibs_check_method in
  2198.     "file_magic "*)
  2199.       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2200.       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2201.       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2202.         egrep "$file_magic_regex" > /dev/null; then
  2203.         :
  2204.       else
  2205.         cat <<EOF 1>&2
  2206.  
  2207. *** Warning: the command libtool uses to detect shared libraries,
  2208. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2209. *** The result is that libtool may fail to recognize shared libraries
  2210. *** as such.  This will affect the creation of libtool libraries that
  2211. *** depend on shared libraries, but programs linked with such libtool
  2212. *** libraries will work regardless of this problem.  Nevertheless, you
  2213. *** may want to report the problem to your system manager and/or to
  2214. *** bug-libtool@gnu.org
  2215.  
  2216. EOF
  2217.       fi ;;
  2218.     esac
  2219.       fi
  2220.       break
  2221.     fi
  2222.   done
  2223.   IFS="$ac_save_ifs"
  2224.   MAGIC_CMD="$ac_save_MAGIC_CMD"
  2225.   ;;
  2226. esac
  2227. fi
  2228.  
  2229. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2230. if test -n "$MAGIC_CMD"; then
  2231.   echo "$ac_t""$MAGIC_CMD" 1>&6
  2232. else
  2233.   echo "$ac_t""no" 1>&6
  2234. fi
  2235.  
  2236.   else
  2237.     MAGIC_CMD=:
  2238.   fi
  2239. fi
  2240.  
  2241.   fi
  2242.   ;;
  2243. esac
  2244.  
  2245. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2246. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2247. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2248. echo "configure:2249: checking for $ac_word" >&5
  2249. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2250.   echo $ac_n "(cached) $ac_c" 1>&6
  2251. else
  2252.   if test -n "$RANLIB"; then
  2253.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2254. else
  2255.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2256.   ac_dummy="$PATH"
  2257.   for ac_dir in $ac_dummy; do
  2258.     test -z "$ac_dir" && ac_dir=.
  2259.     if test -f $ac_dir/$ac_word; then
  2260.       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2261.       break
  2262.     fi
  2263.   done
  2264.   IFS="$ac_save_ifs"
  2265. fi
  2266. fi
  2267. RANLIB="$ac_cv_prog_RANLIB"
  2268. if test -n "$RANLIB"; then
  2269.   echo "$ac_t""$RANLIB" 1>&6
  2270. else
  2271.   echo "$ac_t""no" 1>&6
  2272. fi
  2273.  
  2274.  
  2275. if test -z "$ac_cv_prog_RANLIB"; then
  2276. if test -n "$ac_tool_prefix"; then
  2277.   # Extract the first word of "ranlib", so it can be a program name with args.
  2278. set dummy ranlib; ac_word=$2
  2279. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2280. echo "configure:2281: checking for $ac_word" >&5
  2281. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2282.   echo $ac_n "(cached) $ac_c" 1>&6
  2283. else
  2284.   if test -n "$RANLIB"; then
  2285.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2286. else
  2287.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2288.   ac_dummy="$PATH"
  2289.   for ac_dir in $ac_dummy; do
  2290.     test -z "$ac_dir" && ac_dir=.
  2291.     if test -f $ac_dir/$ac_word; then
  2292.       ac_cv_prog_RANLIB="ranlib"
  2293.       break
  2294.     fi
  2295.   done
  2296.   IFS="$ac_save_ifs"
  2297.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2298. fi
  2299. fi
  2300. RANLIB="$ac_cv_prog_RANLIB"
  2301. if test -n "$RANLIB"; then
  2302.   echo "$ac_t""$RANLIB" 1>&6
  2303. else
  2304.   echo "$ac_t""no" 1>&6
  2305. fi
  2306.  
  2307. else
  2308.   RANLIB=":"
  2309. fi
  2310. fi
  2311.  
  2312. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2313. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2314. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2315. echo "configure:2316: checking for $ac_word" >&5
  2316. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2317.   echo $ac_n "(cached) $ac_c" 1>&6
  2318. else
  2319.   if test -n "$STRIP"; then
  2320.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2321. else
  2322.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2323.   ac_dummy="$PATH"
  2324.   for ac_dir in $ac_dummy; do
  2325.     test -z "$ac_dir" && ac_dir=.
  2326.     if test -f $ac_dir/$ac_word; then
  2327.       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2328.       break
  2329.     fi
  2330.   done
  2331.   IFS="$ac_save_ifs"
  2332. fi
  2333. fi
  2334. STRIP="$ac_cv_prog_STRIP"
  2335. if test -n "$STRIP"; then
  2336.   echo "$ac_t""$STRIP" 1>&6
  2337. else
  2338.   echo "$ac_t""no" 1>&6
  2339. fi
  2340.  
  2341.  
  2342. if test -z "$ac_cv_prog_STRIP"; then
  2343. if test -n "$ac_tool_prefix"; then
  2344.   # Extract the first word of "strip", so it can be a program name with args.
  2345. set dummy strip; ac_word=$2
  2346. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2347. echo "configure:2348: checking for $ac_word" >&5
  2348. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2349.   echo $ac_n "(cached) $ac_c" 1>&6
  2350. else
  2351.   if test -n "$STRIP"; then
  2352.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2353. else
  2354.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  2355.   ac_dummy="$PATH"
  2356.   for ac_dir in $ac_dummy; do
  2357.     test -z "$ac_dir" && ac_dir=.
  2358.     if test -f $ac_dir/$ac_word; then
  2359.       ac_cv_prog_STRIP="strip"
  2360.       break
  2361.     fi
  2362.   done
  2363.   IFS="$ac_save_ifs"
  2364.   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  2365. fi
  2366. fi
  2367. STRIP="$ac_cv_prog_STRIP"
  2368. if test -n "$STRIP"; then
  2369.   echo "$ac_t""$STRIP" 1>&6
  2370. else
  2371.   echo "$ac_t""no" 1>&6
  2372. fi
  2373.  
  2374. else
  2375.   STRIP=":"
  2376. fi
  2377. fi
  2378.  
  2379.  
  2380. enable_dlopen=no
  2381. enable_win32_dll=no
  2382.  
  2383. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  2384. if test "${enable_libtool_lock+set}" = set; then
  2385.   enableval="$enable_libtool_lock"
  2386.   :
  2387. fi
  2388.  
  2389. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2390.  
  2391. # Some flags need to be propagated to the compiler or linker for good
  2392. # libtool support.
  2393. case $host in
  2394. *-*-irix6*)
  2395.   # Find out which ABI we are using.
  2396.   echo '#line 2397 "configure"' > conftest.$ac_ext
  2397.   if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2398.     case `/usr/bin/file conftest.$ac_objext` in
  2399.     *32-bit*)
  2400.       LD="${LD-ld} -32"
  2401.       ;;
  2402.     *N32*)
  2403.       LD="${LD-ld} -n32"
  2404.       ;;
  2405.     *64-bit*)
  2406.       LD="${LD-ld} -64"
  2407.       ;;
  2408.     esac
  2409.   fi
  2410.   rm -rf conftest*
  2411.   ;;
  2412.  
  2413. *-*-sco3.2v5*)
  2414.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2415.   SAVE_CFLAGS="$CFLAGS"
  2416.   CFLAGS="$CFLAGS -belf"
  2417.   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  2418. echo "configure:2419: checking whether the C compiler needs -belf" >&5
  2419. if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  2420.   echo $ac_n "(cached) $ac_c" 1>&6
  2421. else
  2422.   
  2423.      ac_ext=c
  2424. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2425. ac_cpp='$CPP $CPPFLAGS'
  2426. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2427. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2428. cross_compiling=$ac_cv_prog_cc_cross
  2429.  
  2430.      cat > conftest.$ac_ext <<EOF
  2431. #line 2432 "configure"
  2432. #include "confdefs.h"
  2433.  
  2434. int main() {
  2435.  
  2436. ; return 0; }
  2437. EOF
  2438. if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2439.   rm -rf conftest*
  2440.   lt_cv_cc_needs_belf=yes
  2441. else
  2442.   echo "configure: failed program was:" >&5
  2443.   cat conftest.$ac_ext >&5
  2444.   rm -rf conftest*
  2445.   lt_cv_cc_needs_belf=no
  2446. fi
  2447. rm -f conftest*
  2448.      ac_ext=c
  2449. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2450. ac_cpp='$CPP $CPPFLAGS'
  2451. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2452. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2453. cross_compiling=$ac_cv_prog_cc_cross
  2454.  
  2455. fi
  2456.  
  2457. echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  2458.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2459.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2460.     CFLAGS="$SAVE_CFLAGS"
  2461.   fi
  2462.   ;;
  2463.  
  2464.  
  2465. esac
  2466.  
  2467. # Sed substitution that helps us do robust quoting.  It backslashifies
  2468. # metacharacters that are still active within double-quoted strings.
  2469. Xsed='sed -e s/^X//'
  2470. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  2471.  
  2472. # Same as above, but do not quote variable references.
  2473. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  2474.  
  2475. # Sed substitution to delay expansion of an escaped shell variable in a
  2476. # double_quote_subst'ed string.
  2477. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2478.  
  2479. # Constants:
  2480. rm="rm -f"
  2481.  
  2482. # Global variables:
  2483. default_ofile=libtool
  2484. can_build_shared=yes
  2485.  
  2486. # All known linkers require a `.a' archive for static linking (except M$VC,
  2487. # which needs '.lib').
  2488. libext=a
  2489. ltmain="$ac_aux_dir/ltmain.sh"
  2490. ofile="$default_ofile"
  2491. with_gnu_ld="$lt_cv_prog_gnu_ld"
  2492. need_locks="$enable_libtool_lock"
  2493.  
  2494. old_CC="$CC"
  2495. old_CFLAGS="$CFLAGS"
  2496.  
  2497. # Set sane defaults for various variables
  2498. test -z "$AR" && AR=ar
  2499. test -z "$AR_FLAGS" && AR_FLAGS=cru
  2500. test -z "$AS" && AS=as
  2501. test -z "$CC" && CC=cc
  2502. test -z "$DLLTOOL" && DLLTOOL=dlltool
  2503. test -z "$LD" && LD=ld
  2504. test -z "$LN_S" && LN_S="ln -s"
  2505. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  2506. test -z "$NM" && NM=nm
  2507. test -z "$OBJDUMP" && OBJDUMP=objdump
  2508. test -z "$RANLIB" && RANLIB=:
  2509. test -z "$STRIP" && STRIP=:
  2510. test -z "$ac_objext" && ac_objext=o
  2511.  
  2512. if test x"$host" != x"$build"; then
  2513.   ac_tool_prefix=${host_alias}-
  2514. else
  2515.   ac_tool_prefix=
  2516. fi
  2517.  
  2518. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  2519. case $host_os in
  2520. linux-gnu*) ;;
  2521. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  2522. esac
  2523.  
  2524. case $host_os in
  2525. aix3*)
  2526.   # AIX sometimes has problems with the GCC collect2 program.  For some
  2527.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  2528.   # vanish in a puff of smoke.
  2529.   if test "X${COLLECT_NAMES+set}" != Xset; then
  2530.     COLLECT_NAMES=
  2531.     export COLLECT_NAMES
  2532.   fi
  2533.   ;;
  2534. esac
  2535.  
  2536. # Determine commands to create old-style static archives.
  2537. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  2538. old_postinstall_cmds='chmod 644 $oldlib'
  2539. old_postuninstall_cmds=
  2540.  
  2541. if test -n "$RANLIB"; then
  2542.   case $host_os in
  2543.   openbsd*)
  2544.     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  2545.     ;;
  2546.   *)
  2547.     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  2548.     ;;
  2549.   esac
  2550.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2551. fi
  2552.  
  2553. # Allow CC to be a program name with arguments.
  2554. set dummy $CC
  2555. compiler="$2"
  2556.  
  2557. echo $ac_n "checking for objdir""... $ac_c" 1>&6
  2558. echo "configure:2559: checking for objdir" >&5
  2559. rm -f .libs 2>/dev/null
  2560. mkdir .libs 2>/dev/null
  2561. if test -d .libs; then
  2562.   objdir=.libs
  2563. else
  2564.   # MS-DOS does not allow filenames that begin with a dot.
  2565.   objdir=_libs
  2566. fi
  2567. rmdir .libs 2>/dev/null
  2568. echo "$ac_t""$objdir" 1>&6
  2569.  
  2570.  
  2571. # Check whether --with-pic or --without-pic was given.
  2572. if test "${with_pic+set}" = set; then
  2573.   withval="$with_pic"
  2574.   pic_mode="$withval"
  2575. else
  2576.   pic_mode=default
  2577. fi
  2578.  
  2579. test -z "$pic_mode" && pic_mode=default
  2580.  
  2581. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  2582. # in isolation, and that seeing it set (from the cache) indicates that
  2583. # the associated values are set (in the cache) correctly too.
  2584. echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
  2585. echo "configure:2586: checking for $compiler option to produce PIC" >&5
  2586. if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  2587.   echo $ac_n "(cached) $ac_c" 1>&6
  2588. else
  2589.    lt_cv_prog_cc_pic=
  2590.   lt_cv_prog_cc_shlib=
  2591.   lt_cv_prog_cc_wl=
  2592.   lt_cv_prog_cc_static=
  2593.   lt_cv_prog_cc_no_builtin=
  2594.   lt_cv_prog_cc_can_build_shared=$can_build_shared
  2595.  
  2596.   if test "$GCC" = yes; then
  2597.     lt_cv_prog_cc_wl='-Wl,'
  2598.     lt_cv_prog_cc_static='-static'
  2599.  
  2600.     case $host_os in
  2601.     aix*)
  2602.       # Below there is a dirty hack to force normal static linking with -ldl
  2603.       # The problem is because libdl dynamically linked with both libc and
  2604.       # libC (AIX C++ library), which obviously doesn't included in libraries
  2605.       # list by gcc. This cause undefined symbols with -static flags.
  2606.       # This hack allows C programs to be linked with "-static -ldl", but
  2607.       # not sure about C++ programs.
  2608.       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  2609.       ;;
  2610.     amigaos*)
  2611.       # FIXME: we need at least 68020 code to build shared libraries, but
  2612.       # adding the `-m68020' flag to GCC prevents building anything better,
  2613.       # like `-m68040'.
  2614.       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  2615.       ;;
  2616.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  2617.       # PIC is the default for these OSes.
  2618.       ;;
  2619.     darwin* | rhapsody*)
  2620.       # PIC is the default on this platform
  2621.       # Common symbols not allowed in MH_DYLIB files
  2622.       lt_cv_prog_cc_pic='-fno-common'
  2623.       ;;
  2624.     cygwin* | mingw* | pw32* | os2*)
  2625.       # This hack is so that the source file can tell whether it is being
  2626.       # built for inclusion in a dll (and should export symbols for example).
  2627.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2628.       ;;
  2629.     sysv4*MP*)
  2630.       if test -d /usr/nec; then
  2631.      lt_cv_prog_cc_pic=-Kconform_pic
  2632.       fi
  2633.       ;;
  2634.     *)
  2635.       lt_cv_prog_cc_pic='-fPIC'
  2636.       ;;
  2637.     esac
  2638.   else
  2639.     # PORTME Check for PIC flags for the system compiler.
  2640.     case $host_os in
  2641.     aix3* | aix4* | aix5*)
  2642.       lt_cv_prog_cc_wl='-Wl,'
  2643.       # All AIX code is PIC.
  2644.       if test "$host_cpu" = ia64; then
  2645.     # AIX 5 now supports IA64 processor
  2646.     lt_cv_prog_cc_static='-Bstatic'
  2647.       else
  2648.     lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  2649.       fi
  2650.       ;;
  2651.  
  2652.     hpux9* | hpux10* | hpux11*)
  2653.       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  2654.       lt_cv_prog_cc_wl='-Wl,'
  2655.       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  2656.       lt_cv_prog_cc_pic='+Z'
  2657.       ;;
  2658.  
  2659.     irix5* | irix6* | nonstopux*)
  2660.       lt_cv_prog_cc_wl='-Wl,'
  2661.       lt_cv_prog_cc_static='-non_shared'
  2662.       # PIC (with -KPIC) is the default.
  2663.       ;;
  2664.  
  2665.     cygwin* | mingw* | pw32* | os2*)
  2666.       # This hack is so that the source file can tell whether it is being
  2667.       # built for inclusion in a dll (and should export symbols for example).
  2668.       lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2669.       ;;
  2670.  
  2671.     newsos6)
  2672.       lt_cv_prog_cc_pic='-KPIC'
  2673.       lt_cv_prog_cc_static='-Bstatic'
  2674.       ;;
  2675.  
  2676.     osf3* | osf4* | osf5*)
  2677.       # All OSF/1 code is PIC.
  2678.       lt_cv_prog_cc_wl='-Wl,'
  2679.       lt_cv_prog_cc_static='-non_shared'
  2680.       ;;
  2681.  
  2682.     sco3.2v5*)
  2683.       lt_cv_prog_cc_pic='-Kpic'
  2684.       lt_cv_prog_cc_static='-dn'
  2685.       lt_cv_prog_cc_shlib='-belf'
  2686.       ;;
  2687.  
  2688.     solaris*)
  2689.       lt_cv_prog_cc_pic='-KPIC'
  2690.       lt_cv_prog_cc_static='-Bstatic'
  2691.       lt_cv_prog_cc_wl='-Wl,'
  2692.       ;;
  2693.  
  2694.     sunos4*)
  2695.       lt_cv_prog_cc_pic='-PIC'
  2696.       lt_cv_prog_cc_static='-Bstatic'
  2697.       lt_cv_prog_cc_wl='-Qoption ld '
  2698.       ;;
  2699.  
  2700.     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2701.       lt_cv_prog_cc_pic='-KPIC'
  2702.       lt_cv_prog_cc_static='-Bstatic'
  2703.       if test "x$host_vendor" = xsni; then
  2704.     lt_cv_prog_cc_wl='-LD'
  2705.       else
  2706.     lt_cv_prog_cc_wl='-Wl,'
  2707.       fi
  2708.       ;;
  2709.  
  2710.     uts4*)
  2711.       lt_cv_prog_cc_pic='-pic'
  2712.       lt_cv_prog_cc_static='-Bstatic'
  2713.       ;;
  2714.  
  2715.     sysv4*MP*)
  2716.       if test -d /usr/nec ;then
  2717.     lt_cv_prog_cc_pic='-Kconform_pic'
  2718.     lt_cv_prog_cc_static='-Bstatic'
  2719.       fi
  2720.       ;;
  2721.  
  2722.     *)
  2723.       lt_cv_prog_cc_can_build_shared=no
  2724.       ;;
  2725.     esac
  2726.   fi
  2727.  
  2728. fi
  2729.  
  2730. if test -z "$lt_cv_prog_cc_pic"; then
  2731.   echo "$ac_t""none" 1>&6
  2732. else
  2733.   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
  2734.  
  2735.   # Check to make sure the pic_flag actually works.
  2736.   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  2737. echo "configure:2738: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  2738.   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  2739.   echo $ac_n "(cached) $ac_c" 1>&6
  2740. else
  2741.       save_CFLAGS="$CFLAGS"
  2742.     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  2743.     cat > conftest.$ac_ext <<EOF
  2744. #line 2745 "configure"
  2745. #include "confdefs.h"
  2746.  
  2747. int main() {
  2748.  
  2749. ; return 0; }
  2750. EOF
  2751. if { (eval echo configure:2752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2752.   rm -rf conftest*
  2753.         case $host_os in
  2754.       hpux9* | hpux10* | hpux11*)
  2755.     # On HP-UX, both CC and GCC only warn that PIC is supported... then
  2756.     # they create non-PIC objects.  So, if there were any warnings, we
  2757.     # assume that PIC is not supported.
  2758.     if test -s conftest.err; then
  2759.       lt_cv_prog_cc_pic_works=no
  2760.     else
  2761.       lt_cv_prog_cc_pic_works=yes
  2762.     fi
  2763.     ;;
  2764.       *)
  2765.     lt_cv_prog_cc_pic_works=yes
  2766.     ;;
  2767.       esac
  2768.     
  2769. else
  2770.   echo "configure: failed program was:" >&5
  2771.   cat conftest.$ac_ext >&5
  2772.   rm -rf conftest*
  2773.         lt_cv_prog_cc_pic_works=no
  2774.     
  2775. fi
  2776. rm -f conftest*
  2777.     CFLAGS="$save_CFLAGS"
  2778.   
  2779. fi
  2780.  
  2781.  
  2782.   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  2783.     lt_cv_prog_cc_pic=
  2784.     lt_cv_prog_cc_can_build_shared=no
  2785.   else
  2786.     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  2787.   fi
  2788.  
  2789.   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
  2790. fi
  2791.  
  2792. # Check for any special shared library compilation flags.
  2793. if test -n "$lt_cv_prog_cc_shlib"; then
  2794.   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
  2795.   if echo "$old_CC $old_CFLAGS " | egrep -e "[     ]$lt_cv_prog_cc_shlib[     ]" >/dev/null; then :
  2796.   else
  2797.    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
  2798.     lt_cv_prog_cc_can_build_shared=no
  2799.   fi
  2800. fi
  2801.  
  2802. echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
  2803. echo "configure:2804: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  2804. if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  2805.   echo $ac_n "(cached) $ac_c" 1>&6
  2806. else
  2807.     lt_cv_prog_cc_static_works=no
  2808.   save_LDFLAGS="$LDFLAGS"
  2809.   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  2810.   cat > conftest.$ac_ext <<EOF
  2811. #line 2812 "configure"
  2812. #include "confdefs.h"
  2813.  
  2814. int main() {
  2815.  
  2816. ; return 0; }
  2817. EOF
  2818. if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2819.   rm -rf conftest*
  2820.   lt_cv_prog_cc_static_works=yes
  2821. else
  2822.   echo "configure: failed program was:" >&5
  2823.   cat conftest.$ac_ext >&5
  2824. fi
  2825. rm -f conftest*
  2826.   LDFLAGS="$save_LDFLAGS"
  2827.  
  2828. fi
  2829.  
  2830.  
  2831. # Belt *and* braces to stop my trousers falling down:
  2832. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  2833. echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
  2834.  
  2835. pic_flag="$lt_cv_prog_cc_pic"
  2836. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  2837. wl="$lt_cv_prog_cc_wl"
  2838. link_static_flag="$lt_cv_prog_cc_static"
  2839. no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  2840. can_build_shared="$lt_cv_prog_cc_can_build_shared"
  2841.  
  2842.  
  2843. # Check to see if options -o and -c are simultaneously supported by compiler
  2844. echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
  2845. echo "configure:2846: checking if $compiler supports -c -o file.$ac_objext" >&5
  2846. if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  2847.   echo $ac_n "(cached) $ac_c" 1>&6
  2848. else
  2849.   
  2850. $rm -r conftest 2>/dev/null
  2851. mkdir conftest
  2852. cd conftest
  2853. echo "int some_variable = 0;" > conftest.$ac_ext
  2854. mkdir out
  2855. # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2856. # that will create temporary files in the current directory regardless of
  2857. # the output directory.  Thus, making CWD read-only will cause this test
  2858. # to fail, enabling locking or at least warning the user not to do parallel
  2859. # builds.
  2860. chmod -w .
  2861. save_CFLAGS="$CFLAGS"
  2862. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  2863. compiler_c_o=no
  2864. if { (eval echo configure:2865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  2865.   # The compiler can only warn and ignore the option if not recognized
  2866.   # So say no if there are warnings
  2867.   if test -s out/conftest.err; then
  2868.     lt_cv_compiler_c_o=no
  2869.   else
  2870.     lt_cv_compiler_c_o=yes
  2871.   fi
  2872. else
  2873.   # Append any errors to the config.log.
  2874.   cat out/conftest.err 1>&5
  2875.   lt_cv_compiler_c_o=no
  2876. fi
  2877. CFLAGS="$save_CFLAGS"
  2878. chmod u+w .
  2879. $rm conftest* out/*
  2880. rmdir out
  2881. cd ..
  2882. rmdir conftest
  2883. $rm -r conftest 2>/dev/null
  2884.  
  2885. fi
  2886.  
  2887. compiler_c_o=$lt_cv_compiler_c_o
  2888. echo "$ac_t""$compiler_c_o" 1>&6
  2889.  
  2890. if test x"$compiler_c_o" = x"yes"; then
  2891.   # Check to see if we can write to a .lo
  2892.   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  2893. echo "configure:2894: checking if $compiler supports -c -o file.lo" >&5
  2894.   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  2895.   echo $ac_n "(cached) $ac_c" 1>&6
  2896. else
  2897.   
  2898.   lt_cv_compiler_o_lo=no
  2899.   save_CFLAGS="$CFLAGS"
  2900.   CFLAGS="$CFLAGS -c -o conftest.lo"
  2901.   save_objext="$ac_objext"
  2902.   ac_objext=lo
  2903.   cat > conftest.$ac_ext <<EOF
  2904. #line 2905 "configure"
  2905. #include "confdefs.h"
  2906.  
  2907. int main() {
  2908. int some_variable = 0;
  2909. ; return 0; }
  2910. EOF
  2911. if { (eval echo configure:2912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2912.   rm -rf conftest*
  2913.       # The compiler can only warn and ignore the option if not recognized
  2914.     # So say no if there are warnings
  2915.     if test -s conftest.err; then
  2916.       lt_cv_compiler_o_lo=no
  2917.     else
  2918.       lt_cv_compiler_o_lo=yes
  2919.     fi
  2920.   
  2921. else
  2922.   echo "configure: failed program was:" >&5
  2923.   cat conftest.$ac_ext >&5
  2924. fi
  2925. rm -f conftest*
  2926.   ac_objext="$save_objext"
  2927.   CFLAGS="$save_CFLAGS"
  2928.   
  2929. fi
  2930.  
  2931.   compiler_o_lo=$lt_cv_compiler_o_lo
  2932.   echo "$ac_t""$compiler_o_lo" 1>&6
  2933. else
  2934.   compiler_o_lo=no
  2935. fi
  2936.  
  2937. # Check to see if we can do hard links to lock some files if needed
  2938. hard_links="nottested"
  2939. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  2940.   # do not overwrite the value of need_locks provided by the user
  2941.   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  2942. echo "configure:2943: checking if we can lock with hard links" >&5
  2943.   hard_links=yes
  2944.   $rm conftest*
  2945.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2946.   touch conftest.a
  2947.   ln conftest.a conftest.b 2>&5 || hard_links=no
  2948.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2949.   echo "$ac_t""$hard_links" 1>&6
  2950.   if test "$hard_links" = no; then
  2951.     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
  2952.     need_locks=warn
  2953.   fi
  2954. else
  2955.   need_locks=no
  2956. fi
  2957.  
  2958. if test "$GCC" = yes; then
  2959.   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  2960.   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  2961. echo "configure:2962: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  2962.   echo "int some_variable = 0;" > conftest.$ac_ext
  2963.   save_CFLAGS="$CFLAGS"
  2964.   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  2965.   compiler_rtti_exceptions=no
  2966.   cat > conftest.$ac_ext <<EOF
  2967. #line 2968 "configure"
  2968. #include "confdefs.h"
  2969.  
  2970. int main() {
  2971. int some_variable = 0;
  2972. ; return 0; }
  2973. EOF
  2974. if { (eval echo configure:2975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2975.   rm -rf conftest*
  2976.       # The compiler can only warn and ignore the option if not recognized
  2977.     # So say no if there are warnings
  2978.     if test -s conftest.err; then
  2979.       compiler_rtti_exceptions=no
  2980.     else
  2981.       compiler_rtti_exceptions=yes
  2982.     fi
  2983.   
  2984. else
  2985.   echo "configure: failed program was:" >&5
  2986.   cat conftest.$ac_ext >&5
  2987. fi
  2988. rm -f conftest*
  2989.   CFLAGS="$save_CFLAGS"
  2990.   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
  2991.  
  2992.   if test "$compiler_rtti_exceptions" = "yes"; then
  2993.     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  2994.   else
  2995.     no_builtin_flag=' -fno-builtin'
  2996.   fi
  2997. fi
  2998.  
  2999. # See if the linker supports building shared libraries.
  3000. echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
  3001. echo "configure:3002: checking whether the linker ($LD) supports shared libraries" >&5
  3002.  
  3003. allow_undefined_flag=
  3004. no_undefined_flag=
  3005. need_lib_prefix=unknown
  3006. need_version=unknown
  3007. # when you set need_version to no, make sure it does not cause -set_version
  3008. # flags to be left without arguments
  3009. archive_cmds=
  3010. archive_expsym_cmds=
  3011. old_archive_from_new_cmds=
  3012. old_archive_from_expsyms_cmds=
  3013. export_dynamic_flag_spec=
  3014. whole_archive_flag_spec=
  3015. thread_safe_flag_spec=
  3016. hardcode_into_libs=no
  3017. hardcode_libdir_flag_spec=
  3018. hardcode_libdir_separator=
  3019. hardcode_direct=no
  3020. hardcode_minus_L=no
  3021. hardcode_shlibpath_var=unsupported
  3022. runpath_var=
  3023. link_all_deplibs=unknown
  3024. always_export_symbols=no
  3025. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  3026. # include_expsyms should be a list of space-separated symbols to be *always*
  3027. # included in the symbol list
  3028. include_expsyms=
  3029. # exclude_expsyms can be an egrep regular expression of symbols to exclude
  3030. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  3031. # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  3032. # as well as any symbol that contains `d'.
  3033. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  3034. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  3035. # platforms (ab)use it in PIC code, but their linkers get confused if
  3036. # the symbol is explicitly referenced.  Since portable code cannot
  3037. # rely on this symbol name, it's probably fine to never include it in
  3038. # preloaded symbol tables.
  3039. extract_expsyms_cmds=
  3040.  
  3041. case $host_os in
  3042. cygwin* | mingw* | pw32*)
  3043.   # FIXME: the MSVC++ port hasn't been tested in a loooong time
  3044.   # When not using gcc, we currently assume that we are using
  3045.   # Microsoft Visual C++.
  3046.   if test "$GCC" != yes; then
  3047.     with_gnu_ld=no
  3048.   fi
  3049.   ;;
  3050. openbsd*)
  3051.   with_gnu_ld=no
  3052.   ;;
  3053. esac
  3054.  
  3055. ld_shlibs=yes
  3056. if test "$with_gnu_ld" = yes; then
  3057.   # If archive_cmds runs LD, not CC, wlarc should be empty
  3058.   wlarc='${wl}'
  3059.  
  3060.   # See if GNU ld supports shared libraries.
  3061.   case $host_os in
  3062.   aix3* | aix4* | aix5*)
  3063.     # On AIX, the GNU linker is very broken
  3064.     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  3065.     ld_shlibs=no
  3066.     cat <<EOF 1>&2
  3067.  
  3068. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  3069. *** to be unable to reliably create shared libraries on AIX.
  3070. *** Therefore, libtool is disabling shared libraries support.  If you
  3071. *** really care for shared libraries, you may want to modify your PATH
  3072. *** so that a non-GNU linker is found, and then restart.
  3073.  
  3074. EOF
  3075.     ;;
  3076.  
  3077.   amigaos*)
  3078.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3079.     hardcode_libdir_flag_spec='-L$libdir'
  3080.     hardcode_minus_L=yes
  3081.  
  3082.     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  3083.     # that the semantics of dynamic libraries on AmigaOS, at least up
  3084.     # to version 4, is to share data among multiple programs linked
  3085.     # with the same dynamic library.  Since this doesn't match the
  3086.     # behavior of shared libraries on other platforms, we can use
  3087.     # them.
  3088.     ld_shlibs=no
  3089.     ;;
  3090.  
  3091.   beos*)
  3092.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3093.       allow_undefined_flag=unsupported
  3094.       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3095.       # support --undefined.  This deserves some investigation.  FIXME
  3096.       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3097.     else
  3098.       ld_shlibs=no
  3099.     fi
  3100.     ;;
  3101.  
  3102.   cygwin* | mingw* | pw32*)
  3103.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  3104.     # no search path for DLLs.
  3105.     hardcode_libdir_flag_spec='-L$libdir'
  3106.     allow_undefined_flag=unsupported
  3107.     always_export_symbols=yes
  3108.  
  3109.     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  3110.       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  3111.       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  3112.       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  3113.       else $CC -o impgen impgen.c ; fi)~
  3114.       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  3115.  
  3116.     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  3117.  
  3118.     # cygwin and mingw dlls have different entry points and sets of symbols
  3119.     # to exclude.
  3120.     # FIXME: what about values for MSVC?
  3121.     dll_entry=__cygwin_dll_entry@12
  3122.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  3123.     case $host_os in
  3124.     mingw*)
  3125.       # mingw values
  3126.       dll_entry=_DllMainCRTStartup@12
  3127.       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  3128.       ;;
  3129.     esac
  3130.  
  3131.     # mingw and cygwin differ, and it's simplest to just exclude the union
  3132.     # of the two symbol sets.
  3133.     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  3134.  
  3135.     # recent cygwin and mingw systems supply a stub DllMain which the user
  3136.     # can override, but on older systems we have to supply one (in ltdll.c)
  3137.     if test "x$lt_cv_need_dllmain" = "xyes"; then
  3138.       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  3139.       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  3140.     test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  3141.     else
  3142.       ltdll_obj=
  3143.       ltdll_cmds=
  3144.     fi
  3145.  
  3146.     # Extract the symbol export list from an `--export-all' def file,
  3147.     # then regenerate the def file from the symbol export list, so that
  3148.     # the compiled dll only exports the symbol export list.
  3149.     # Be careful not to strip the DATA tag left be newer dlltools.
  3150.     export_symbols_cmds="$ltdll_cmds"'
  3151.       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  3152.       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  3153.  
  3154.     # If the export-symbols file already is a .def file (1st line
  3155.     # is EXPORTS), use it as is.
  3156.     # If DATA tags from a recent dlltool are present, honour them!
  3157.     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  3158.     cp $export_symbols $output_objdir/$soname-def;
  3159.       else
  3160.     echo EXPORTS > $output_objdir/$soname-def;
  3161.     _lt_hint=1;
  3162.     cat $export_symbols | while read symbol; do
  3163.      set dummy \$symbol;
  3164.      case \$# in
  3165.        2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  3166.        *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  3167.      esac;
  3168.      _lt_hint=`expr 1 + \$_lt_hint`;
  3169.     done;
  3170.       fi~
  3171.       '"$ltdll_cmds"'
  3172.       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  3173.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  3174.       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  3175.       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  3176.       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  3177.     ;;
  3178.  
  3179.   netbsd*)
  3180.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3181.       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  3182.       wlarc=
  3183.     else
  3184.       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3185.       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3186.     fi
  3187.     ;;
  3188.  
  3189.   solaris* | sysv5*)
  3190.     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  3191.       ld_shlibs=no
  3192.       cat <<EOF 1>&2
  3193.  
  3194. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  3195. *** create shared libraries on Solaris systems.  Therefore, libtool
  3196. *** is disabling shared libraries support.  We urge you to upgrade GNU
  3197. *** binutils to release 2.9.1 or newer.  Another option is to modify
  3198. *** your PATH or compiler configuration so that the native linker is
  3199. *** used, and then restart.
  3200.  
  3201. EOF
  3202.     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3203.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3204.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3205.     else
  3206.       ld_shlibs=no
  3207.     fi
  3208.     ;;
  3209.  
  3210.   sunos4*)
  3211.     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3212.     wlarc=
  3213.     hardcode_direct=yes
  3214.     hardcode_shlibpath_var=no
  3215.     ;;
  3216.  
  3217.   *)
  3218.     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3219.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3220.       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3221.     else
  3222.       ld_shlibs=no
  3223.     fi
  3224.     ;;
  3225.   esac
  3226.  
  3227.   if test "$ld_shlibs" = yes; then
  3228.     runpath_var=LD_RUN_PATH
  3229.     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  3230.     export_dynamic_flag_spec='${wl}--export-dynamic'
  3231.     case $host_os in
  3232.     cygwin* | mingw* | pw32*)
  3233.       # dlltool doesn't understand --whole-archive et. al.
  3234.       whole_archive_flag_spec=
  3235.       ;;
  3236.     *)
  3237.       # ancient GNU ld didn't support --whole-archive et. al.
  3238.       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  3239.     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3240.       else
  3241.     whole_archive_flag_spec=
  3242.       fi
  3243.       ;;
  3244.     esac
  3245.   fi
  3246. else
  3247.   # PORTME fill in a description of your system's linker (not GNU ld)
  3248.   case $host_os in
  3249.   aix3*)
  3250.     allow_undefined_flag=unsupported
  3251.     always_export_symbols=yes
  3252.     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  3253.     # Note: this linker hardcodes the directories in LIBPATH if there
  3254.     # are no directories specified by -L.
  3255.     hardcode_minus_L=yes
  3256.     if test "$GCC" = yes && test -z "$link_static_flag"; then
  3257.       # Neither direct hardcoding nor static linking is supported with a
  3258.       # broken collect2.
  3259.       hardcode_direct=unsupported
  3260.     fi
  3261.     ;;
  3262.  
  3263.   aix4* | aix5*)
  3264.     if test "$host_cpu" = ia64; then
  3265.       # On IA64, the linker does run time linking by default, so we don't
  3266.       # have to do anything special.
  3267.       aix_use_runtimelinking=no
  3268.       exp_sym_flag='-Bexport'
  3269.       no_entry_flag=""
  3270.     else
  3271.       aix_use_runtimelinking=no
  3272.  
  3273.       # Test if we are trying to use run time linking or normal
  3274.       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3275.       # need to do runtime linking.
  3276.       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  3277.     for ld_flag in $LDFLAGS; do
  3278.       if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  3279.         aix_use_runtimelinking=yes
  3280.         break
  3281.       fi
  3282.     done
  3283.       esac
  3284.  
  3285.       exp_sym_flag='-bexport'
  3286.       no_entry_flag='-bnoentry'
  3287.     fi
  3288.  
  3289.     # When large executables or shared objects are built, AIX ld can
  3290.     # have problems creating the table of contents.  If linking a library
  3291.     # or program results in "error TOC overflow" add -mminimal-toc to
  3292.     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  3293.     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3294.  
  3295.     hardcode_direct=yes
  3296.     archive_cmds=''
  3297.     hardcode_libdir_separator=':'
  3298.     if test "$GCC" = yes; then
  3299.       case $host_os in aix4.[012]|aix4.[012].*)
  3300.     collect2name=`${CC} -print-prog-name=collect2`
  3301.     if test -f "$collect2name" && \
  3302.       strings "$collect2name" | grep resolve_lib_name >/dev/null
  3303.     then
  3304.       # We have reworked collect2
  3305.       hardcode_direct=yes
  3306.     else
  3307.       # We have old collect2
  3308.       hardcode_direct=unsupported
  3309.       # It fails to find uninstalled libraries when the uninstalled
  3310.       # path is not listed in the libpath.  Setting hardcode_minus_L
  3311.       # to unsupported forces relinking
  3312.       hardcode_minus_L=yes
  3313.       hardcode_libdir_flag_spec='-L$libdir'
  3314.       hardcode_libdir_separator=
  3315.     fi
  3316.       esac
  3317.  
  3318.       shared_flag='-shared'
  3319.     else
  3320.       # not using gcc
  3321.       if test "$host_cpu" = ia64; then
  3322.     shared_flag='${wl}-G'
  3323.       else
  3324.     if test "$aix_use_runtimelinking" = yes; then
  3325.       shared_flag='${wl}-G'
  3326.     else
  3327.       shared_flag='${wl}-bM:SRE'
  3328.     fi
  3329.       fi
  3330.     fi
  3331.  
  3332.     # It seems that -bexpall can do strange things, so it is better to
  3333.     # generate a list of symbols to export.
  3334.     always_export_symbols=yes
  3335.     if test "$aix_use_runtimelinking" = yes; then
  3336.       # Warning - without using the other runtime loading flags (-brtl),
  3337.       # -berok will link without error, but may produce a broken library.
  3338.       allow_undefined_flag='-berok'
  3339.       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  3340.       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  3341.     else
  3342.       if test "$host_cpu" = ia64; then
  3343.     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  3344.     allow_undefined_flag="-z nodefs"
  3345.     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  3346.       else
  3347.     hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  3348.     # Warning - without using the other run time loading flags,
  3349.     # -berok will link without error, but may produce a broken library.
  3350.     allow_undefined_flag='${wl}-berok'
  3351.     # This is a bit strange, but is similar to how AIX traditionally builds
  3352.     # it's shared libraries.
  3353.     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  3354.       fi
  3355.     fi
  3356.     ;;
  3357.  
  3358.   amigaos*)
  3359.     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  3360.     hardcode_libdir_flag_spec='-L$libdir'
  3361.     hardcode_minus_L=yes
  3362.     # see comment about different semantics on the GNU ld section
  3363.     ld_shlibs=no
  3364.     ;;
  3365.  
  3366.   cygwin* | mingw* | pw32*)
  3367.     # When not using gcc, we currently assume that we are using
  3368.     # Microsoft Visual C++.
  3369.     # hardcode_libdir_flag_spec is actually meaningless, as there is
  3370.     # no search path for DLLs.
  3371.     hardcode_libdir_flag_spec=' '
  3372.     allow_undefined_flag=unsupported
  3373.     # Tell ltmain to make .lib files, not .a files.
  3374.     libext=lib
  3375.     # FIXME: Setting linknames here is a bad hack.
  3376.     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  3377.     # The linker will automatically build a .lib file if we build a DLL.
  3378.     old_archive_from_new_cmds='true'
  3379.     # FIXME: Should let the user specify the lib program.
  3380.     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  3381.     fix_srcfile_path='`cygpath -w "$srcfile"`'
  3382.     ;;
  3383.  
  3384.   darwin* | rhapsody*)
  3385.     case "$host_os" in
  3386.     rhapsody* | darwin1.[012])
  3387.       allow_undefined_flag='-undefined suppress'
  3388.       ;;
  3389.     *) # Darwin 1.3 on
  3390.       allow_undefined_flag='-flat_namespace -undefined suppress'
  3391.       ;;
  3392.     esac
  3393.     # FIXME: Relying on posixy $() will cause problems for
  3394.     #        cross-compilation, but unfortunately the echo tests do not
  3395.     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
  3396.     #         `"' quotes if we put them in here... so don't!
  3397.     archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
  3398.     # We need to add '_' to the symbols in $export_symbols first
  3399.     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  3400.     hardcode_direct=yes
  3401.     hardcode_shlibpath_var=no
  3402.     whole_archive_flag_spec='-all_load $convenience'
  3403.     ;;
  3404.  
  3405.   freebsd1*)
  3406.     ld_shlibs=no
  3407.     ;;
  3408.  
  3409.   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  3410.   # support.  Future versions do this automatically, but an explicit c++rt0.o
  3411.   # does not break anything, and helps significantly (at the cost of a little
  3412.   # extra space).
  3413.   freebsd2.2*)
  3414.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  3415.     hardcode_libdir_flag_spec='-R$libdir'
  3416.     hardcode_direct=yes
  3417.     hardcode_shlibpath_var=no
  3418.     ;;
  3419.  
  3420.   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  3421.   freebsd2*)
  3422.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3423.     hardcode_direct=yes
  3424.     hardcode_minus_L=yes
  3425.     hardcode_shlibpath_var=no
  3426.     ;;
  3427.  
  3428.   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  3429.   freebsd*)
  3430.     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  3431.     hardcode_libdir_flag_spec='-R$libdir'
  3432.     hardcode_direct=yes
  3433.     hardcode_shlibpath_var=no
  3434.     ;;
  3435.  
  3436.   hpux9* | hpux10* | hpux11*)
  3437.     case $host_os in
  3438.     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  3439.     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  3440.     esac
  3441.     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  3442.     hardcode_libdir_separator=:
  3443.     hardcode_direct=yes
  3444.     hardcode_minus_L=yes # Not in the search PATH, but as the default
  3445.              # location of the library.
  3446.     export_dynamic_flag_spec='${wl}-E'
  3447.     ;;
  3448.  
  3449.   irix5* | irix6* | nonstopux*)
  3450.     if test "$GCC" = yes; then
  3451.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3452.     else
  3453.       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3454.     fi
  3455.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3456.     hardcode_libdir_separator=:
  3457.     link_all_deplibs=yes
  3458.     ;;
  3459.  
  3460.   netbsd*)
  3461.     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3462.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  3463.     else
  3464.       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  3465.     fi
  3466.     hardcode_libdir_flag_spec='-R$libdir'
  3467.     hardcode_direct=yes
  3468.     hardcode_shlibpath_var=no
  3469.     ;;
  3470.  
  3471.   newsos6)
  3472.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3473.     hardcode_direct=yes
  3474.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3475.     hardcode_libdir_separator=:
  3476.     hardcode_shlibpath_var=no
  3477.     ;;
  3478.  
  3479.   openbsd*)
  3480.     hardcode_direct=yes
  3481.     hardcode_shlibpath_var=no
  3482.     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3483.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  3484.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  3485.       export_dynamic_flag_spec='${wl}-E'
  3486.     else
  3487.       case "$host_os" in
  3488.       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  3489.     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3490.     hardcode_libdir_flag_spec='-R$libdir'
  3491.         ;;
  3492.       *)
  3493.         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
  3494.         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  3495.         ;;
  3496.       esac
  3497.     fi
  3498.     ;;
  3499.  
  3500.   os2*)
  3501.     hardcode_libdir_flag_spec='-L$libdir'
  3502.     hardcode_minus_L=yes
  3503.     allow_undefined_flag=unsupported
  3504.     archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  3505.     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  3506.     ;;
  3507.  
  3508.   osf3*)
  3509.     if test "$GCC" = yes; then
  3510.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  3511.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3512.     else
  3513.       allow_undefined_flag=' -expect_unresolved \*'
  3514.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3515.     fi
  3516.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3517.     hardcode_libdir_separator=:
  3518.     ;;
  3519.  
  3520.   osf4* | osf5*)    # as osf3* with the addition of -msym flag
  3521.     if test "$GCC" = yes; then
  3522.       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  3523.       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  3524.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  3525.     else
  3526.       allow_undefined_flag=' -expect_unresolved \*'
  3527.       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  3528.       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  3529.       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  3530.  
  3531.       #Both c and cxx compiler support -rpath directly
  3532.       hardcode_libdir_flag_spec='-rpath $libdir'
  3533.     fi
  3534.     hardcode_libdir_separator=:
  3535.     ;;
  3536.  
  3537.   sco3.2v5*)
  3538.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3539.     hardcode_shlibpath_var=no
  3540.     runpath_var=LD_RUN_PATH
  3541.     hardcode_runpath_var=yes
  3542.     export_dynamic_flag_spec='${wl}-Bexport'
  3543.     ;;
  3544.  
  3545.   solaris*)
  3546.     # gcc --version < 3.0 without binutils cannot create self contained
  3547.     # shared libraries reliably, requiring libgcc.a to resolve some of
  3548.     # the object symbols generated in some cases.  Libraries that use
  3549.     # assert need libgcc.a to resolve __eprintf, for example.  Linking
  3550.     # a copy of libgcc.a into every shared library to guarantee resolving
  3551.     # such symbols causes other problems:  According to Tim Van Holder
  3552.     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  3553.     # (to the application) exception stack for one thing.
  3554.     no_undefined_flag=' -z defs'
  3555.     if test "$GCC" = yes; then
  3556.       case `$CC --version 2>/dev/null` in
  3557.       [12].*)
  3558.     cat <<EOF 1>&2
  3559.  
  3560. *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  3561. *** create self contained shared libraries on Solaris systems, without
  3562. *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
  3563. *** -no-undefined support, which will at least allow you to build shared
  3564. *** libraries.  However, you may find that when you link such libraries
  3565. *** into an application without using GCC, you have to manually add
  3566. *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
  3567. *** upgrade to a newer version of GCC.  Another option is to rebuild your
  3568. *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  3569.  
  3570. EOF
  3571.         no_undefined_flag=
  3572.     ;;
  3573.       esac
  3574.     fi
  3575.     # $CC -shared without GNU ld will not create a library from C++
  3576.     # object files and a static libstdc++, better avoid it by now
  3577.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3578.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3579.         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3580.     hardcode_libdir_flag_spec='-R$libdir'
  3581.     hardcode_shlibpath_var=no
  3582.     case $host_os in
  3583.     solaris2.[0-5] | solaris2.[0-5].*) ;;
  3584.     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  3585.       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  3586.     esac
  3587.     link_all_deplibs=yes
  3588.     ;;
  3589.  
  3590.   sunos4*)
  3591.     if test "x$host_vendor" = xsequent; then
  3592.       # Use $CC to link under sequent, because it throws in some extra .o
  3593.       # files that make .init and .fini sections work.
  3594.       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  3595.     else
  3596.       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  3597.     fi
  3598.     hardcode_libdir_flag_spec='-L$libdir'
  3599.     hardcode_direct=yes
  3600.     hardcode_minus_L=yes
  3601.     hardcode_shlibpath_var=no
  3602.     ;;
  3603.  
  3604.   sysv4)
  3605.     if test "x$host_vendor" = xsno; then
  3606.       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3607.       hardcode_direct=yes # is this really true???
  3608.     else
  3609.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3610.       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  3611.     fi
  3612.     runpath_var='LD_RUN_PATH'
  3613.     hardcode_shlibpath_var=no
  3614.     ;;
  3615.  
  3616.   sysv4.3*)
  3617.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3618.     hardcode_shlibpath_var=no
  3619.     export_dynamic_flag_spec='-Bexport'
  3620.     ;;
  3621.  
  3622.   sysv5*)
  3623.     no_undefined_flag=' -z text'
  3624.     # $CC -shared without GNU ld will not create a library from C++
  3625.     # object files and a static libstdc++, better avoid it by now
  3626.     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3627.     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3628.         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3629.     hardcode_libdir_flag_spec=
  3630.     hardcode_shlibpath_var=no
  3631.     runpath_var='LD_RUN_PATH'
  3632.     ;;
  3633.  
  3634.   uts4*)
  3635.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3636.     hardcode_libdir_flag_spec='-L$libdir'
  3637.     hardcode_shlibpath_var=no
  3638.     ;;
  3639.  
  3640.   dgux*)
  3641.     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3642.     hardcode_libdir_flag_spec='-L$libdir'
  3643.     hardcode_shlibpath_var=no
  3644.     ;;
  3645.  
  3646.   sysv4*MP*)
  3647.     if test -d /usr/nec; then
  3648.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3649.       hardcode_shlibpath_var=no
  3650.       runpath_var=LD_RUN_PATH
  3651.       hardcode_runpath_var=yes
  3652.       ld_shlibs=yes
  3653.     fi
  3654.     ;;
  3655.  
  3656.   sysv4.2uw2*)
  3657.     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3658.     hardcode_direct=yes
  3659.     hardcode_minus_L=no
  3660.     hardcode_shlibpath_var=no
  3661.     hardcode_runpath_var=yes
  3662.     runpath_var=LD_RUN_PATH
  3663.     ;;
  3664.  
  3665.   sysv5uw7* | unixware7*)
  3666.     no_undefined_flag='${wl}-z ${wl}text'
  3667.     if test "$GCC" = yes; then
  3668.       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3669.     else
  3670.       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3671.     fi
  3672.     runpath_var='LD_RUN_PATH'
  3673.     hardcode_shlibpath_var=no
  3674.     ;;
  3675.  
  3676.   *)
  3677.     ld_shlibs=no
  3678.     ;;
  3679.   esac
  3680. fi
  3681. echo "$ac_t""$ld_shlibs" 1>&6
  3682. test "$ld_shlibs" = no && can_build_shared=no
  3683.  
  3684. # Check hardcoding attributes.
  3685. echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
  3686. echo "configure:3687: checking how to hardcode library paths into programs" >&5
  3687. hardcode_action=
  3688. if test -n "$hardcode_libdir_flag_spec" || \
  3689.    test -n "$runpath_var"; then
  3690.  
  3691.   # We can hardcode non-existant directories.
  3692.   if test "$hardcode_direct" != no &&
  3693.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3694.      # have to relink, otherwise we might link with an installed library
  3695.      # when we should be linking with a yet-to-be-installed one
  3696.      ## test "$hardcode_shlibpath_var" != no &&
  3697.      test "$hardcode_minus_L" != no; then
  3698.     # Linking always hardcodes the temporary library directory.
  3699.     hardcode_action=relink
  3700.   else
  3701.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3702.     hardcode_action=immediate
  3703.   fi
  3704. else
  3705.   # We cannot hardcode anything, or else we can only hardcode existing
  3706.   # directories.
  3707.   hardcode_action=unsupported
  3708. fi
  3709. echo "$ac_t""$hardcode_action" 1>&6
  3710.  
  3711. striplib=
  3712. old_striplib=
  3713. echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
  3714. echo "configure:3715: checking whether stripping libraries is possible" >&5
  3715. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3716.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3717.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3718.   echo "$ac_t""yes" 1>&6
  3719. else
  3720.   echo "$ac_t""no" 1>&6
  3721. fi
  3722.  
  3723. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3724. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3725.  
  3726. # PORTME Fill in your ld.so characteristics
  3727. echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
  3728. echo "configure:3729: checking dynamic linker characteristics" >&5
  3729. library_names_spec=
  3730. libname_spec='lib$name'
  3731. soname_spec=
  3732. postinstall_cmds=
  3733. postuninstall_cmds=
  3734. finish_cmds=
  3735. finish_eval=
  3736. shlibpath_var=
  3737. shlibpath_overrides_runpath=unknown
  3738. version_type=none
  3739. dynamic_linker="$host_os ld.so"
  3740. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3741. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3742.  
  3743. case $host_os in
  3744. aix3*)
  3745.   version_type=linux
  3746.   library_names_spec='${libname}${release}.so$versuffix $libname.a'
  3747.   shlibpath_var=LIBPATH
  3748.  
  3749.   # AIX has no versioning support, so we append a major version to the name.
  3750.   soname_spec='${libname}${release}.so$major'
  3751.   ;;
  3752.  
  3753. aix4* | aix5*)
  3754.   version_type=linux
  3755.   if test "$host_cpu" = ia64; then
  3756.     # AIX 5 supports IA64
  3757.     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  3758.     shlibpath_var=LD_LIBRARY_PATH
  3759.   else
  3760.     # With GCC up to 2.95.x, collect2 would create an import file
  3761.     # for dependence libraries.  The import file would start with
  3762.     # the line `#! .'.  This would cause the generated library to
  3763.     # depend on `.', always an invalid library.  This was fixed in
  3764.     # development snapshots of GCC prior to 3.0.
  3765.     case $host_os in
  3766.       aix4 | aix4.[01] | aix4.[01].*)
  3767.     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3768.          echo ' yes '
  3769.          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3770.       :
  3771.     else
  3772.       can_build_shared=no
  3773.     fi
  3774.     ;;
  3775.     esac
  3776.     # AIX (on Power*) has no versioning support, so currently we can
  3777.     # not hardcode correct soname into executable. Probably we can
  3778.     # add versioning support to collect2, so additional links can
  3779.     # be useful in future.
  3780.     if test "$aix_use_runtimelinking" = yes; then
  3781.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3782.       # instead of lib<name>.a to let people know that these are not
  3783.       # typical AIX shared libraries.
  3784.       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3785.     else
  3786.       # We preserve .a as extension for shared libraries through AIX4.2
  3787.       # and later when we are not doing run time linking.
  3788.       library_names_spec='${libname}${release}.a $libname.a'
  3789.       soname_spec='${libname}${release}.so$major'
  3790.     fi
  3791.     shlibpath_var=LIBPATH
  3792.   fi
  3793.   ;;
  3794.  
  3795. amigaos*)
  3796.   library_names_spec='$libname.ixlibrary $libname.a'
  3797.   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3798.   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  3799.   ;;
  3800.  
  3801. beos*)
  3802.   library_names_spec='${libname}.so'
  3803.   dynamic_linker="$host_os ld.so"
  3804.   shlibpath_var=LIBRARY_PATH
  3805.   ;;
  3806.  
  3807. bsdi4*)
  3808.   version_type=linux
  3809.   need_version=no
  3810.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3811.   soname_spec='${libname}${release}.so$major'
  3812.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3813.   shlibpath_var=LD_LIBRARY_PATH
  3814.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3815.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3816.   export_dynamic_flag_spec=-rdynamic
  3817.   # the default ld.so.conf also contains /usr/contrib/lib and
  3818.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3819.   # libtool to hard-code these into programs
  3820.   ;;
  3821.  
  3822. cygwin* | mingw* | pw32*)
  3823.   version_type=windows
  3824.   need_version=no
  3825.   need_lib_prefix=no
  3826.   case $GCC,$host_os in
  3827.   yes,cygwin*)
  3828.     library_names_spec='$libname.dll.a'
  3829.     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3830.     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  3831.       dldir=$destdir/`dirname \$dlpath`~
  3832.       test -d \$dldir || mkdir -p \$dldir~
  3833.       $install_prog .libs/$dlname \$dldir/$dlname'
  3834.     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3835.       dlpath=$dir/\$dldll~
  3836.        $rm \$dlpath'
  3837.     ;;
  3838.   yes,mingw*)
  3839.     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3840.     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  3841.     ;;
  3842.   yes,pw32*)
  3843.     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  3844.     ;;
  3845.   *)
  3846.     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  3847.     ;;
  3848.   esac
  3849.   dynamic_linker='Win32 ld.exe'
  3850.   # FIXME: first we should search . and the directory the executable is in
  3851.   shlibpath_var=PATH
  3852.   ;;
  3853.  
  3854. darwin* | rhapsody*)
  3855.   dynamic_linker="$host_os dyld"
  3856.   version_type=darwin
  3857.   need_lib_prefix=no
  3858.   need_version=no
  3859.   # FIXME: Relying on posixy $() will cause problems for
  3860.   #        cross-compilation, but unfortunately the echo tests do not
  3861.   #        yet detect zsh echo's removal of \ escapes.
  3862.   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  3863.   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  3864.   shlibpath_overrides_runpath=yes
  3865.   shlibpath_var=DYLD_LIBRARY_PATH
  3866.   ;;
  3867.  
  3868. freebsd1*)
  3869.   dynamic_linker=no
  3870.   ;;
  3871.  
  3872. freebsd*)
  3873.   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  3874.   version_type=freebsd-$objformat
  3875.   case $version_type in
  3876.     freebsd-elf*)
  3877.       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  3878.       need_version=no
  3879.       need_lib_prefix=no
  3880.       ;;
  3881.     freebsd-*)
  3882.       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  3883.       need_version=yes
  3884.       ;;
  3885.   esac
  3886.   shlibpath_var=LD_LIBRARY_PATH
  3887.   case $host_os in
  3888.   freebsd2*)
  3889.     shlibpath_overrides_runpath=yes
  3890.     ;;
  3891.   *)
  3892.     shlibpath_overrides_runpath=no
  3893.     hardcode_into_libs=yes
  3894.     ;;
  3895.   esac
  3896.   ;;
  3897.  
  3898. gnu*)
  3899.   version_type=linux
  3900.   need_lib_prefix=no
  3901.   need_version=no
  3902.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  3903.   soname_spec='${libname}${release}.so$major'
  3904.   shlibpath_var=LD_LIBRARY_PATH
  3905.   hardcode_into_libs=yes
  3906.   ;;
  3907.  
  3908. hpux9* | hpux10* | hpux11*)
  3909.   # Give a soname corresponding to the major version so that dld.sl refuses to
  3910.   # link against other versions.
  3911.   dynamic_linker="$host_os dld.sl"
  3912.   version_type=sunos
  3913.   need_lib_prefix=no
  3914.   need_version=no
  3915.   shlibpath_var=SHLIB_PATH
  3916.   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3917.   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  3918.   soname_spec='${libname}${release}.sl$major'
  3919.   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3920.   postinstall_cmds='chmod 555 $lib'
  3921.   ;;
  3922.  
  3923. irix5* | irix6* | nonstopux*)
  3924.   case $host_os in
  3925.     nonstopux*) version_type=nonstopux ;;
  3926.     *)          version_type=irix ;;
  3927.   esac
  3928.   need_lib_prefix=no
  3929.   need_version=no
  3930.   soname_spec='${libname}${release}.so$major'
  3931.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  3932.   case $host_os in
  3933.   irix5* | nonstopux*)
  3934.     libsuff= shlibsuff=
  3935.     ;;
  3936.   *)
  3937.     case $LD in # libtool.m4 will add one of these switches to LD
  3938.     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  3939.     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  3940.     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3941.     *) libsuff= shlibsuff= libmagic=never-match;;
  3942.     esac
  3943.     ;;
  3944.   esac
  3945.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3946.   shlibpath_overrides_runpath=no
  3947.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  3948.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  3949.   ;;
  3950.  
  3951. # No shared lib support for Linux oldld, aout, or coff.
  3952. linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  3953.   dynamic_linker=no
  3954.   ;;
  3955.  
  3956. # This must be Linux ELF.
  3957. linux-gnu*)
  3958.   version_type=linux
  3959.   need_lib_prefix=no
  3960.   need_version=no
  3961.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3962.   soname_spec='${libname}${release}.so$major'
  3963.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3964.   shlibpath_var=LD_LIBRARY_PATH
  3965.   shlibpath_overrides_runpath=no
  3966.   # This implies no fast_install, which is unacceptable.
  3967.   # Some rework will be needed to allow for fast_install
  3968.   # before this can be enabled.
  3969.   hardcode_into_libs=yes
  3970.  
  3971.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  3972.   # powerpc, because MkLinux only supported shared libraries with the
  3973.   # GNU dynamic linker.  Since this was broken with cross compilers,
  3974.   # most powerpc-linux boxes support dynamic linking these days and
  3975.   # people can always --disable-shared, the test was removed, and we
  3976.   # assume the GNU/Linux dynamic linker is in use.
  3977.   dynamic_linker='GNU/Linux ld.so'
  3978.   ;;
  3979.  
  3980. netbsd*)
  3981.   version_type=sunos
  3982.   need_lib_prefix=no
  3983.   need_version=no
  3984.   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3985.     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3986.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3987.     dynamic_linker='NetBSD (a.out) ld.so'
  3988.   else
  3989.     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  3990.     soname_spec='${libname}${release}.so$major'
  3991.     dynamic_linker='NetBSD ld.elf_so'
  3992.   fi
  3993.   shlibpath_var=LD_LIBRARY_PATH
  3994.   shlibpath_overrides_runpath=yes
  3995.   hardcode_into_libs=yes
  3996.   ;;
  3997.  
  3998. newsos6)
  3999.   version_type=linux
  4000.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4001.   shlibpath_var=LD_LIBRARY_PATH
  4002.   shlibpath_overrides_runpath=yes
  4003.   ;;
  4004.  
  4005. openbsd*)
  4006.   version_type=sunos
  4007.   need_lib_prefix=no
  4008.   need_version=no
  4009.   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4010.     case "$host_os" in
  4011.     openbsd2.[89] | openbsd2.[89].*)
  4012.       shlibpath_overrides_runpath=no
  4013.       ;;
  4014.     *)
  4015.       shlibpath_overrides_runpath=yes
  4016.       ;;
  4017.     esac
  4018.   else
  4019.     shlibpath_overrides_runpath=yes
  4020.   fi
  4021.   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  4022.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4023.   shlibpath_var=LD_LIBRARY_PATH
  4024.   ;;
  4025.  
  4026. os2*)
  4027.   libname_spec='$name'
  4028.   need_lib_prefix=no
  4029.   library_names_spec='$libname.dll $libname.a'
  4030.   dynamic_linker='OS/2 ld.exe'
  4031.   shlibpath_var=LIBPATH
  4032.   ;;
  4033.  
  4034. osf3* | osf4* | osf5*)
  4035.   version_type=osf
  4036.   need_version=no
  4037.   soname_spec='${libname}${release}.so'
  4038.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  4039.   shlibpath_var=LD_LIBRARY_PATH
  4040.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4041.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4042.   ;;
  4043.  
  4044. sco3.2v5*)
  4045.   version_type=osf
  4046.   soname_spec='${libname}${release}.so$major'
  4047.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4048.   shlibpath_var=LD_LIBRARY_PATH
  4049.   ;;
  4050.  
  4051. solaris*)
  4052.   version_type=linux
  4053.   need_lib_prefix=no
  4054.   need_version=no
  4055.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4056.   soname_spec='${libname}${release}.so$major'
  4057.   shlibpath_var=LD_LIBRARY_PATH
  4058.   shlibpath_overrides_runpath=yes
  4059.   hardcode_into_libs=yes
  4060.   # ldd complains unless libraries are executable
  4061.   postinstall_cmds='chmod +x $lib'
  4062.   ;;
  4063.  
  4064. sunos4*)
  4065.   version_type=sunos
  4066.   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  4067.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4068.   shlibpath_var=LD_LIBRARY_PATH
  4069.   shlibpath_overrides_runpath=yes
  4070.   if test "$with_gnu_ld" = yes; then
  4071.     need_lib_prefix=no
  4072.   fi
  4073.   need_version=yes
  4074.   ;;
  4075.  
  4076. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4077.   version_type=linux
  4078.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4079.   soname_spec='${libname}${release}.so$major'
  4080.   shlibpath_var=LD_LIBRARY_PATH
  4081.   case $host_vendor in
  4082.     sni)
  4083.       shlibpath_overrides_runpath=no
  4084.       ;;
  4085.     motorola)
  4086.       need_lib_prefix=no
  4087.       need_version=no
  4088.       shlibpath_overrides_runpath=no
  4089.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4090.       ;;
  4091.   esac
  4092.   ;;
  4093.  
  4094. uts4*)
  4095.   version_type=linux
  4096.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4097.   soname_spec='${libname}${release}.so$major'
  4098.   shlibpath_var=LD_LIBRARY_PATH
  4099.   ;;
  4100.  
  4101. dgux*)
  4102.   version_type=linux
  4103.   need_lib_prefix=no
  4104.   need_version=no
  4105.   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  4106.   soname_spec='${libname}${release}.so$major'
  4107.   shlibpath_var=LD_LIBRARY_PATH
  4108.   ;;
  4109.  
  4110. sysv4*MP*)
  4111.   if test -d /usr/nec ;then
  4112.     version_type=linux
  4113.     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  4114.     soname_spec='$libname.so.$major'
  4115.     shlibpath_var=LD_LIBRARY_PATH
  4116.   fi
  4117.   ;;
  4118.  
  4119. *)
  4120.   dynamic_linker=no
  4121.   ;;
  4122. esac
  4123. echo "$ac_t""$dynamic_linker" 1>&6
  4124. test "$dynamic_linker" = no && can_build_shared=no
  4125.  
  4126. # Report the final consequences.
  4127. echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
  4128. echo "configure:4129: checking if libtool supports shared libraries" >&5
  4129. echo "$ac_t""$can_build_shared" 1>&6
  4130.  
  4131. echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
  4132. echo "configure:4133: checking whether to build shared libraries" >&5
  4133. test "$can_build_shared" = "no" && enable_shared=no
  4134.  
  4135. # On AIX, shared libraries and static libraries use the same namespace, and
  4136. # are all built from PIC.
  4137. case "$host_os" in
  4138. aix3*)
  4139.   test "$enable_shared" = yes && enable_static=no
  4140.   if test -n "$RANLIB"; then
  4141.     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4142.     postinstall_cmds='$RANLIB $lib'
  4143.   fi
  4144.   ;;
  4145.  
  4146. aix4*)
  4147.   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4148.     test "$enable_shared" = yes && enable_static=no
  4149.   fi
  4150.   ;;
  4151. esac
  4152. echo "$ac_t""$enable_shared" 1>&6
  4153.  
  4154. echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
  4155. echo "configure:4156: checking whether to build static libraries" >&5
  4156. # Make sure either enable_shared or enable_static is yes.
  4157. test "$enable_shared" = yes || enable_static=yes
  4158. echo "$ac_t""$enable_static" 1>&6
  4159.  
  4160. if test "$hardcode_action" = relink; then
  4161.   # Fast installation is not supported
  4162.   enable_fast_install=no
  4163. elif test "$shlibpath_overrides_runpath" = yes ||
  4164.      test "$enable_shared" = no; then
  4165.   # Fast installation is not necessary
  4166.   enable_fast_install=needless
  4167. fi
  4168.  
  4169. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4170. if test "$GCC" = yes; then
  4171.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4172. fi
  4173.  
  4174. if test "x$enable_dlopen" != xyes; then
  4175.   enable_dlopen=unknown
  4176.   enable_dlopen_self=unknown
  4177.   enable_dlopen_self_static=unknown
  4178. else
  4179.   lt_cv_dlopen=no
  4180.   lt_cv_dlopen_libs=
  4181.  
  4182.   case $host_os in
  4183.   beos*)
  4184.     lt_cv_dlopen="load_add_on"
  4185.     lt_cv_dlopen_libs=
  4186.     lt_cv_dlopen_self=yes
  4187.     ;;
  4188.  
  4189.   cygwin* | mingw* | pw32*)
  4190.     lt_cv_dlopen="LoadLibrary"
  4191.     lt_cv_dlopen_libs=
  4192.    ;;
  4193.  
  4194.   *)
  4195.     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  4196. echo "configure:4197: checking for shl_load" >&5
  4197. if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  4198.   echo $ac_n "(cached) $ac_c" 1>&6
  4199. else
  4200.   cat > conftest.$ac_ext <<EOF
  4201. #line 4202 "configure"
  4202. #include "confdefs.h"
  4203. /* System header to define __stub macros and hopefully few prototypes,
  4204.     which can conflict with char shl_load(); below.  */
  4205. #include <assert.h>
  4206. /* Override any gcc2 internal prototype to avoid an error.  */
  4207. /* We use char because int might match the return type of a gcc2
  4208.     builtin and then its argument prototype would still apply.  */
  4209. char shl_load();
  4210.  
  4211. int main() {
  4212.  
  4213. /* The GNU C library defines this for functions which it implements
  4214.     to always fail with ENOSYS.  Some functions are actually named
  4215.     something starting with __ and the normal name is an alias.  */
  4216. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  4217. choke me
  4218. #else
  4219. shl_load();
  4220. #endif
  4221.  
  4222. ; return 0; }
  4223. EOF
  4224. if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4225.   rm -rf conftest*
  4226.   eval "ac_cv_func_shl_load=yes"
  4227. else
  4228.   echo "configure: failed program was:" >&5
  4229.   cat conftest.$ac_ext >&5
  4230.   rm -rf conftest*
  4231.   eval "ac_cv_func_shl_load=no"
  4232. fi
  4233. rm -f conftest*
  4234. fi
  4235.  
  4236. if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  4237.   echo "$ac_t""yes" 1>&6
  4238.   lt_cv_dlopen="shl_load"
  4239. else
  4240.   echo "$ac_t""no" 1>&6
  4241. echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  4242. echo "configure:4243: checking for shl_load in -ldld" >&5
  4243. ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  4244. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4245.   echo $ac_n "(cached) $ac_c" 1>&6
  4246. else
  4247.   ac_save_LIBS="$LIBS"
  4248. LIBS="-ldld  $LIBS"
  4249. cat > conftest.$ac_ext <<EOF
  4250. #line 4251 "configure"
  4251. #include "confdefs.h"
  4252. /* Override any gcc2 internal prototype to avoid an error.  */
  4253. /* We use char because int might match the return type of a gcc2
  4254.     builtin and then its argument prototype would still apply.  */
  4255. char shl_load();
  4256.  
  4257. int main() {
  4258. shl_load()
  4259. ; return 0; }
  4260. EOF
  4261. if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4262.   rm -rf conftest*
  4263.   eval "ac_cv_lib_$ac_lib_var=yes"
  4264. else
  4265.   echo "configure: failed program was:" >&5
  4266.   cat conftest.$ac_ext >&5
  4267.   rm -rf conftest*
  4268.   eval "ac_cv_lib_$ac_lib_var=no"
  4269. fi
  4270. rm -f conftest*
  4271. LIBS="$ac_save_LIBS"
  4272.  
  4273. fi
  4274. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4275.   echo "$ac_t""yes" 1>&6
  4276.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  4277. else
  4278.   echo "$ac_t""no" 1>&6
  4279. echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  4280. echo "configure:4281: checking for dlopen" >&5
  4281. if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  4282.   echo $ac_n "(cached) $ac_c" 1>&6
  4283. else
  4284.   cat > conftest.$ac_ext <<EOF
  4285. #line 4286 "configure"
  4286. #include "confdefs.h"
  4287. /* System header to define __stub macros and hopefully few prototypes,
  4288.     which can conflict with char dlopen(); below.  */
  4289. #include <assert.h>
  4290. /* Override any gcc2 internal prototype to avoid an error.  */
  4291. /* We use char because int might match the return type of a gcc2
  4292.     builtin and then its argument prototype would still apply.  */
  4293. char dlopen();
  4294.  
  4295. int main() {
  4296.  
  4297. /* The GNU C library defines this for functions which it implements
  4298.     to always fail with ENOSYS.  Some functions are actually named
  4299.     something starting with __ and the normal name is an alias.  */
  4300. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  4301. choke me
  4302. #else
  4303. dlopen();
  4304. #endif
  4305.  
  4306. ; return 0; }
  4307. EOF
  4308. if { (eval echo configure:4309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4309.   rm -rf conftest*
  4310.   eval "ac_cv_func_dlopen=yes"
  4311. else
  4312.   echo "configure: failed program was:" >&5
  4313.   cat conftest.$ac_ext >&5
  4314.   rm -rf conftest*
  4315.   eval "ac_cv_func_dlopen=no"
  4316. fi
  4317. rm -f conftest*
  4318. fi
  4319.  
  4320. if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  4321.   echo "$ac_t""yes" 1>&6
  4322.   lt_cv_dlopen="dlopen"
  4323. else
  4324.   echo "$ac_t""no" 1>&6
  4325. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  4326. echo "configure:4327: checking for dlopen in -ldl" >&5
  4327. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  4328. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4329.   echo $ac_n "(cached) $ac_c" 1>&6
  4330. else
  4331.   ac_save_LIBS="$LIBS"
  4332. LIBS="-ldl  $LIBS"
  4333. cat > conftest.$ac_ext <<EOF
  4334. #line 4335 "configure"
  4335. #include "confdefs.h"
  4336. /* Override any gcc2 internal prototype to avoid an error.  */
  4337. /* We use char because int might match the return type of a gcc2
  4338.     builtin and then its argument prototype would still apply.  */
  4339. char dlopen();
  4340.  
  4341. int main() {
  4342. dlopen()
  4343. ; return 0; }
  4344. EOF
  4345. if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4346.   rm -rf conftest*
  4347.   eval "ac_cv_lib_$ac_lib_var=yes"
  4348. else
  4349.   echo "configure: failed program was:" >&5
  4350.   cat conftest.$ac_ext >&5
  4351.   rm -rf conftest*
  4352.   eval "ac_cv_lib_$ac_lib_var=no"
  4353. fi
  4354. rm -f conftest*
  4355. LIBS="$ac_save_LIBS"
  4356.  
  4357. fi
  4358. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4359.   echo "$ac_t""yes" 1>&6
  4360.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  4361. else
  4362.   echo "$ac_t""no" 1>&6
  4363. echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  4364. echo "configure:4365: checking for dlopen in -lsvld" >&5
  4365. ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  4366. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4367.   echo $ac_n "(cached) $ac_c" 1>&6
  4368. else
  4369.   ac_save_LIBS="$LIBS"
  4370. LIBS="-lsvld  $LIBS"
  4371. cat > conftest.$ac_ext <<EOF
  4372. #line 4373 "configure"
  4373. #include "confdefs.h"
  4374. /* Override any gcc2 internal prototype to avoid an error.  */
  4375. /* We use char because int might match the return type of a gcc2
  4376.     builtin and then its argument prototype would still apply.  */
  4377. char dlopen();
  4378.  
  4379. int main() {
  4380. dlopen()
  4381. ; return 0; }
  4382. EOF
  4383. if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4384.   rm -rf conftest*
  4385.   eval "ac_cv_lib_$ac_lib_var=yes"
  4386. else
  4387.   echo "configure: failed program was:" >&5
  4388.   cat conftest.$ac_ext >&5
  4389.   rm -rf conftest*
  4390.   eval "ac_cv_lib_$ac_lib_var=no"
  4391. fi
  4392. rm -f conftest*
  4393. LIBS="$ac_save_LIBS"
  4394.  
  4395. fi
  4396. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4397.   echo "$ac_t""yes" 1>&6
  4398.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  4399. else
  4400.   echo "$ac_t""no" 1>&6
  4401. echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  4402. echo "configure:4403: checking for dld_link in -ldld" >&5
  4403. ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  4404. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4405.   echo $ac_n "(cached) $ac_c" 1>&6
  4406. else
  4407.   ac_save_LIBS="$LIBS"
  4408. LIBS="-ldld  $LIBS"
  4409. cat > conftest.$ac_ext <<EOF
  4410. #line 4411 "configure"
  4411. #include "confdefs.h"
  4412. /* Override any gcc2 internal prototype to avoid an error.  */
  4413. /* We use char because int might match the return type of a gcc2
  4414.     builtin and then its argument prototype would still apply.  */
  4415. char dld_link();
  4416.  
  4417. int main() {
  4418. dld_link()
  4419. ; return 0; }
  4420. EOF
  4421. if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4422.   rm -rf conftest*
  4423.   eval "ac_cv_lib_$ac_lib_var=yes"
  4424. else
  4425.   echo "configure: failed program was:" >&5
  4426.   cat conftest.$ac_ext >&5
  4427.   rm -rf conftest*
  4428.   eval "ac_cv_lib_$ac_lib_var=no"
  4429. fi
  4430. rm -f conftest*
  4431. LIBS="$ac_save_LIBS"
  4432.  
  4433. fi
  4434. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4435.   echo "$ac_t""yes" 1>&6
  4436.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  4437. else
  4438.   echo "$ac_t""no" 1>&6
  4439. fi
  4440.  
  4441.           
  4442. fi
  4443.  
  4444.         
  4445. fi
  4446.  
  4447.       
  4448. fi
  4449.  
  4450.     
  4451. fi
  4452.  
  4453.       
  4454. fi
  4455.  
  4456.     ;;
  4457.   esac
  4458.  
  4459.   if test "x$lt_cv_dlopen" != xno; then
  4460.     enable_dlopen=yes
  4461.   else
  4462.     enable_dlopen=no
  4463.   fi
  4464.  
  4465.   case $lt_cv_dlopen in
  4466.   dlopen)
  4467.     save_CPPFLAGS="$CPPFLAGS"
  4468.         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  4469.  
  4470.     save_LDFLAGS="$LDFLAGS"
  4471.     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  4472.  
  4473.     save_LIBS="$LIBS"
  4474.     LIBS="$lt_cv_dlopen_libs $LIBS"
  4475.  
  4476.     echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  4477. echo "configure:4478: checking whether a program can dlopen itself" >&5
  4478. if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  4479.   echo $ac_n "(cached) $ac_c" 1>&6
  4480. else
  4481.         if test "$cross_compiling" = yes; then :
  4482.   lt_cv_dlopen_self=cross
  4483. else
  4484.     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4485.   lt_status=$lt_dlunknown
  4486.   cat > conftest.$ac_ext <<EOF
  4487. #line 4488 "configure"
  4488. #include "confdefs.h"
  4489.  
  4490. #if HAVE_DLFCN_H
  4491. #include <dlfcn.h>
  4492. #endif
  4493.  
  4494. #include <stdio.h>
  4495.  
  4496. #ifdef RTLD_GLOBAL
  4497. #  define LT_DLGLOBAL        RTLD_GLOBAL
  4498. #else
  4499. #  ifdef DL_GLOBAL
  4500. #    define LT_DLGLOBAL        DL_GLOBAL
  4501. #  else
  4502. #    define LT_DLGLOBAL        0
  4503. #  endif
  4504. #endif
  4505.  
  4506. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  4507.    find out it does not work in some platform. */
  4508. #ifndef LT_DLLAZY_OR_NOW
  4509. #  ifdef RTLD_LAZY
  4510. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  4511. #  else
  4512. #    ifdef DL_LAZY
  4513. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  4514. #    else
  4515. #      ifdef RTLD_NOW
  4516. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  4517. #      else
  4518. #        ifdef DL_NOW
  4519. #          define LT_DLLAZY_OR_NOW    DL_NOW
  4520. #        else
  4521. #          define LT_DLLAZY_OR_NOW    0
  4522. #        endif
  4523. #      endif
  4524. #    endif
  4525. #  endif
  4526. #endif
  4527.  
  4528. #ifdef __cplusplus
  4529. extern "C" void exit (int);
  4530. #endif
  4531.  
  4532. void fnord() { int i=42;}
  4533. int main ()
  4534. {
  4535.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  4536.   int status = $lt_dlunknown;
  4537.  
  4538.   if (self)
  4539.     {
  4540.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  4541.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  4542.       /* dlclose (self); */
  4543.     }
  4544.  
  4545.     exit (status);
  4546. }
  4547. EOF
  4548.   if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  4549.     (./conftest; exit; ) 2>/dev/null
  4550.     lt_status=$?
  4551.     case x$lt_status in
  4552.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  4553.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  4554.       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  4555.     esac
  4556.   else :
  4557.     # compilation failed
  4558.     lt_cv_dlopen_self=no
  4559.   fi
  4560. fi
  4561. rm -fr conftest*
  4562.  
  4563.     
  4564. fi
  4565.  
  4566. echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  4567.  
  4568.     if test "x$lt_cv_dlopen_self" = xyes; then
  4569.       LDFLAGS="$LDFLAGS $link_static_flag"
  4570.       echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  4571. echo "configure:4572: checking whether a statically linked program can dlopen itself" >&5
  4572. if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  4573.   echo $ac_n "(cached) $ac_c" 1>&6
  4574. else
  4575.         if test "$cross_compiling" = yes; then :
  4576.   lt_cv_dlopen_self_static=cross
  4577. else
  4578.     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  4579.   lt_status=$lt_dlunknown
  4580.   cat > conftest.$ac_ext <<EOF
  4581. #line 4582 "configure"
  4582. #include "confdefs.h"
  4583.  
  4584. #if HAVE_DLFCN_H
  4585. #include <dlfcn.h>
  4586. #endif
  4587.  
  4588. #include <stdio.h>
  4589.  
  4590. #ifdef RTLD_GLOBAL
  4591. #  define LT_DLGLOBAL        RTLD_GLOBAL
  4592. #else
  4593. #  ifdef DL_GLOBAL
  4594. #    define LT_DLGLOBAL        DL_GLOBAL
  4595. #  else
  4596. #    define LT_DLGLOBAL        0
  4597. #  endif
  4598. #endif
  4599.  
  4600. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  4601.    find out it does not work in some platform. */
  4602. #ifndef LT_DLLAZY_OR_NOW
  4603. #  ifdef RTLD_LAZY
  4604. #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
  4605. #  else
  4606. #    ifdef DL_LAZY
  4607. #      define LT_DLLAZY_OR_NOW        DL_LAZY
  4608. #    else
  4609. #      ifdef RTLD_NOW
  4610. #        define LT_DLLAZY_OR_NOW    RTLD_NOW
  4611. #      else
  4612. #        ifdef DL_NOW
  4613. #          define LT_DLLAZY_OR_NOW    DL_NOW
  4614. #        else
  4615. #          define LT_DLLAZY_OR_NOW    0
  4616. #        endif
  4617. #      endif
  4618. #    endif
  4619. #  endif
  4620. #endif
  4621.  
  4622. #ifdef __cplusplus
  4623. extern "C" void exit (int);
  4624. #endif
  4625.  
  4626. void fnord() { int i=42;}
  4627. int main ()
  4628. {
  4629.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  4630.   int status = $lt_dlunknown;
  4631.  
  4632.   if (self)
  4633.     {
  4634.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  4635.       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  4636.       /* dlclose (self); */
  4637.     }
  4638.  
  4639.     exit (status);
  4640. }
  4641. EOF
  4642.   if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  4643.     (./conftest; exit; ) 2>/dev/null
  4644.     lt_status=$?
  4645.     case x$lt_status in
  4646.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  4647.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  4648.       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  4649.     esac
  4650.   else :
  4651.     # compilation failed
  4652.     lt_cv_dlopen_self_static=no
  4653.   fi
  4654. fi
  4655. rm -fr conftest*
  4656.  
  4657.       
  4658. fi
  4659.  
  4660. echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  4661.     fi
  4662.  
  4663.     CPPFLAGS="$save_CPPFLAGS"
  4664.     LDFLAGS="$save_LDFLAGS"
  4665.     LIBS="$save_LIBS"
  4666.     ;;
  4667.   esac
  4668.  
  4669.   case $lt_cv_dlopen_self in
  4670.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  4671.   *) enable_dlopen_self=unknown ;;
  4672.   esac
  4673.  
  4674.   case $lt_cv_dlopen_self_static in
  4675.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  4676.   *) enable_dlopen_self_static=unknown ;;
  4677.   esac
  4678. fi
  4679.  
  4680.  
  4681. if test "$enable_shared" = yes && test "$GCC" = yes; then
  4682.   case $archive_cmds in
  4683.   *'~'*)
  4684.     # FIXME: we may have to deal with multi-command sequences.
  4685.     ;;
  4686.   '$CC '*)
  4687.     # Test whether the compiler implicitly links with -lc since on some
  4688.     # systems, -lgcc has to come before -lc. If gcc already passes -lc
  4689.     # to ld, don't add -lc before -lgcc.
  4690.     echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
  4691. echo "configure:4692: checking whether -lc should be explicitly linked in" >&5
  4692.     if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  4693.   echo $ac_n "(cached) $ac_c" 1>&6
  4694. else
  4695.   $rm conftest*
  4696.     echo 'static int dummy;' > conftest.$ac_ext
  4697.  
  4698.     if { (eval echo configure:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4699.       soname=conftest
  4700.       lib=conftest
  4701.       libobjs=conftest.$ac_objext
  4702.       deplibs=
  4703.       wl=$lt_cv_prog_cc_wl
  4704.       compiler_flags=-v
  4705.       linker_flags=-v
  4706.       verstring=
  4707.       output_objdir=.
  4708.       libname=conftest
  4709.       save_allow_undefined_flag=$allow_undefined_flag
  4710.       allow_undefined_flag=
  4711.       if { (eval echo configure:4712: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
  4712.       then
  4713.     lt_cv_archive_cmds_need_lc=no
  4714.       else
  4715.     lt_cv_archive_cmds_need_lc=yes
  4716.       fi
  4717.       allow_undefined_flag=$save_allow_undefined_flag
  4718.     else
  4719.       cat conftest.err 1>&5
  4720.     fi
  4721. fi
  4722.  
  4723.     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
  4724.     ;;
  4725.   esac
  4726. fi
  4727. need_lc=${lt_cv_archive_cmds_need_lc-yes}
  4728.  
  4729. # The second clause should only fire when bootstrapping the
  4730. # libtool distribution, otherwise you forgot to ship ltmain.sh
  4731. # with your package, and you will get complaints that there are
  4732. # no rules to generate ltmain.sh.
  4733. if test -f "$ltmain"; then
  4734.   :
  4735. else
  4736.   # If there is no Makefile yet, we rely on a make rule to execute
  4737.   # `config.status --recheck' to rerun these tests and create the
  4738.   # libtool script then.
  4739.   test -f Makefile && make "$ltmain"
  4740. fi
  4741.  
  4742. if test -f "$ltmain"; then
  4743.   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  4744.   $rm -f "${ofile}T"
  4745.  
  4746.   echo creating $ofile
  4747.  
  4748.   # Now quote all the things that may contain metacharacters while being
  4749.   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  4750.   # variables and quote the copies for generation of the libtool script.
  4751.   for var in echo old_CC old_CFLAGS \
  4752.     AR AR_FLAGS CC LD LN_S NM SHELL \
  4753.     reload_flag reload_cmds wl \
  4754.     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  4755.     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  4756.     library_names_spec soname_spec \
  4757.     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  4758.     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  4759.     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  4760.     old_striplib striplib file_magic_cmd export_symbols_cmds \
  4761.     deplibs_check_method allow_undefined_flag no_undefined_flag \
  4762.     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  4763.     global_symbol_to_c_name_address \
  4764.     hardcode_libdir_flag_spec hardcode_libdir_separator  \
  4765.     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4766.     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  4767.  
  4768.     case $var in
  4769.     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  4770.     old_postinstall_cmds | old_postuninstall_cmds | \
  4771.     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  4772.     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  4773.     postinstall_cmds | postuninstall_cmds | \
  4774.     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4775.       # Double-quote double-evaled strings.
  4776.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4777.       ;;
  4778.     *)
  4779.       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4780.       ;;
  4781.     esac
  4782.   done
  4783.  
  4784.   cat <<__EOF__ > "${ofile}T"
  4785. #! $SHELL
  4786.  
  4787. # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4788. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4789. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4790. #
  4791. # Copyright (C) 1996-2000 Free Software Foundation, Inc.
  4792. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4793. #
  4794. # This program is free software; you can redistribute it and/or modify
  4795. # it under the terms of the GNU General Public License as published by
  4796. # the Free Software Foundation; either version 2 of the License, or
  4797. # (at your option) any later version.
  4798. #
  4799. # This program is distributed in the hope that it will be useful, but
  4800. # WITHOUT ANY WARRANTY; without even the implied warranty of
  4801. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  4802. # General Public License for more details.
  4803. #
  4804. # You should have received a copy of the GNU General Public License
  4805. # along with this program; if not, write to the Free Software
  4806. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4807. #
  4808. # As a special exception to the GNU General Public License, if you
  4809. # distribute this file as part of a program that contains a
  4810. # configuration script generated by Autoconf, you may include it under
  4811. # the same distribution terms that you use for the rest of that program.
  4812.  
  4813. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4814. Xsed="sed -e s/^X//"
  4815.  
  4816. # The HP-UX ksh and POSIX shell print the target directory to stdout
  4817. # if CDPATH is set.
  4818. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  4819.  
  4820. # ### BEGIN LIBTOOL CONFIG
  4821.  
  4822. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4823.  
  4824. # Shell to use when invoking shell scripts.
  4825. SHELL=$lt_SHELL
  4826.  
  4827. # Whether or not to build shared libraries.
  4828. build_libtool_libs=$enable_shared
  4829.  
  4830. # Whether or not to build static libraries.
  4831. build_old_libs=$enable_static
  4832.  
  4833. # Whether or not to add -lc for building shared libraries.
  4834. build_libtool_need_lc=$need_lc
  4835.  
  4836. # Whether or not to optimize for fast installation.
  4837. fast_install=$enable_fast_install
  4838.  
  4839. # The host system.
  4840. host_alias=$host_alias
  4841. host=$host
  4842.  
  4843. # An echo program that does not interpret backslashes.
  4844. echo=$lt_echo
  4845.  
  4846. # The archiver.
  4847. AR=$lt_AR
  4848. AR_FLAGS=$lt_AR_FLAGS
  4849.  
  4850. # The default C compiler.
  4851. CC=$lt_CC
  4852.  
  4853. # Is the compiler the GNU C compiler?
  4854. with_gcc=$GCC
  4855.  
  4856. # The linker used to build libraries.
  4857. LD=$lt_LD
  4858.  
  4859. # Whether we need hard or soft links.
  4860. LN_S=$lt_LN_S
  4861.  
  4862. # A BSD-compatible nm program.
  4863. NM=$lt_NM
  4864.  
  4865. # A symbol stripping program
  4866. STRIP=$STRIP
  4867.  
  4868. # Used to examine libraries when file_magic_cmd begins "file"
  4869. MAGIC_CMD=$MAGIC_CMD
  4870.  
  4871. # Used on cygwin: DLL creation program.
  4872. DLLTOOL="$DLLTOOL"
  4873.  
  4874. # Used on cygwin: object dumper.
  4875. OBJDUMP="$OBJDUMP"
  4876.  
  4877. # Used on cygwin: assembler.
  4878. AS="$AS"
  4879.  
  4880. # The name of the directory that contains temporary libtool files.
  4881. objdir=$objdir
  4882.  
  4883. # How to create reloadable object files.
  4884. reload_flag=$lt_reload_flag
  4885. reload_cmds=$lt_reload_cmds
  4886.  
  4887. # How to pass a linker flag through the compiler.
  4888. wl=$lt_wl
  4889.  
  4890. # Object file suffix (normally "o").
  4891. objext="$ac_objext"
  4892.  
  4893. # Old archive suffix (normally "a").
  4894. libext="$libext"
  4895.  
  4896. # Executable file suffix (normally "").
  4897. exeext="$exeext"
  4898.  
  4899. # Additional compiler flags for building library objects.
  4900. pic_flag=$lt_pic_flag
  4901. pic_mode=$pic_mode
  4902.  
  4903. # Does compiler simultaneously support -c and -o options?
  4904. compiler_c_o=$lt_compiler_c_o
  4905.  
  4906. # Can we write directly to a .lo ?
  4907. compiler_o_lo=$lt_compiler_o_lo
  4908.  
  4909. # Must we lock files when doing compilation ?
  4910. need_locks=$lt_need_locks
  4911.  
  4912. # Do we need the lib prefix for modules?
  4913. need_lib_prefix=$need_lib_prefix
  4914.  
  4915. # Do we need a version for libraries?
  4916. need_version=$need_version
  4917.  
  4918. # Whether dlopen is supported.
  4919. dlopen_support=$enable_dlopen
  4920.  
  4921. # Whether dlopen of programs is supported.
  4922. dlopen_self=$enable_dlopen_self
  4923.  
  4924. # Whether dlopen of statically linked programs is supported.
  4925. dlopen_self_static=$enable_dlopen_self_static
  4926.  
  4927. # Compiler flag to prevent dynamic linking.
  4928. link_static_flag=$lt_link_static_flag
  4929.  
  4930. # Compiler flag to turn off builtin functions.
  4931. no_builtin_flag=$lt_no_builtin_flag
  4932.  
  4933. # Compiler flag to allow reflexive dlopens.
  4934. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  4935.  
  4936. # Compiler flag to generate shared objects directly from archives.
  4937. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  4938.  
  4939. # Compiler flag to generate thread-safe objects.
  4940. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  4941.  
  4942. # Library versioning type.
  4943. version_type=$version_type
  4944.  
  4945. # Format of library name prefix.
  4946. libname_spec=$lt_libname_spec
  4947.  
  4948. # List of archive names.  First name is the real one, the rest are links.
  4949. # The last name is the one that the linker finds with -lNAME.
  4950. library_names_spec=$lt_library_names_spec
  4951.  
  4952. # The coded name of the library, if different from the real name.
  4953. soname_spec=$lt_soname_spec
  4954.  
  4955. # Commands used to build and install an old-style archive.
  4956. RANLIB=$lt_RANLIB
  4957. old_archive_cmds=$lt_old_archive_cmds
  4958. old_postinstall_cmds=$lt_old_postinstall_cmds
  4959. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4960.  
  4961. # Create an old-style archive from a shared archive.
  4962. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  4963.  
  4964. # Create a temporary old-style archive to link instead of a shared archive.
  4965. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  4966.  
  4967. # Commands used to build and install a shared archive.
  4968. archive_cmds=$lt_archive_cmds
  4969. archive_expsym_cmds=$lt_archive_expsym_cmds
  4970. postinstall_cmds=$lt_postinstall_cmds
  4971. postuninstall_cmds=$lt_postuninstall_cmds
  4972.  
  4973. # Commands to strip libraries.
  4974. old_striplib=$lt_old_striplib
  4975. striplib=$lt_striplib
  4976.  
  4977. # Method to check whether dependent libraries are shared objects.
  4978. deplibs_check_method=$lt_deplibs_check_method
  4979.  
  4980. # Command to use when deplibs_check_method == file_magic.
  4981. file_magic_cmd=$lt_file_magic_cmd
  4982.  
  4983. # Flag that allows shared libraries with undefined symbols to be built.
  4984. allow_undefined_flag=$lt_allow_undefined_flag
  4985.  
  4986. # Flag that forces no undefined symbols.
  4987. no_undefined_flag=$lt_no_undefined_flag
  4988.  
  4989. # Commands used to finish a libtool library installation in a directory.
  4990. finish_cmds=$lt_finish_cmds
  4991.  
  4992. # Same as above, but a single script fragment to be evaled but not shown.
  4993. finish_eval=$lt_finish_eval
  4994.  
  4995. # Take the output of nm and produce a listing of raw symbols and C names.
  4996. global_symbol_pipe=$lt_global_symbol_pipe
  4997.  
  4998. # Transform the output of nm in a proper C declaration
  4999. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  5000.  
  5001. # Transform the output of nm in a C name address pair
  5002. global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  5003.  
  5004. # This is the shared library runtime path variable.
  5005. runpath_var=$runpath_var
  5006.  
  5007. # This is the shared library path variable.
  5008. shlibpath_var=$shlibpath_var
  5009.  
  5010. # Is shlibpath searched before the hard-coded library search path?
  5011. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  5012.  
  5013. # How to hardcode a shared library path into an executable.
  5014. hardcode_action=$hardcode_action
  5015.  
  5016. # Whether we should hardcode library paths into libraries.
  5017. hardcode_into_libs=$hardcode_into_libs
  5018.  
  5019. # Flag to hardcode \$libdir into a binary during linking.
  5020. # This must work even if \$libdir does not exist.
  5021. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  5022.  
  5023. # Whether we need a single -rpath flag with a separated argument.
  5024. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  5025.  
  5026. # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  5027. # resulting binary.
  5028. hardcode_direct=$hardcode_direct
  5029.  
  5030. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  5031. # resulting binary.
  5032. hardcode_minus_L=$hardcode_minus_L
  5033.  
  5034. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  5035. # the resulting binary.
  5036. hardcode_shlibpath_var=$hardcode_shlibpath_var
  5037.  
  5038. # Variables whose values should be saved in libtool wrapper scripts and
  5039. # restored at relink time.
  5040. variables_saved_for_relink="$variables_saved_for_relink"
  5041.  
  5042. # Whether libtool must link a program against all its dependency libraries.
  5043. link_all_deplibs=$link_all_deplibs
  5044.  
  5045. # Compile-time system search path for libraries
  5046. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  5047.  
  5048. # Run-time system search path for libraries
  5049. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  5050.  
  5051. # Fix the shell variable \$srcfile for the compiler.
  5052. fix_srcfile_path="$fix_srcfile_path"
  5053.  
  5054. # Set to yes if exported symbols are required.
  5055. always_export_symbols=$always_export_symbols
  5056.  
  5057. # The commands to list exported symbols.
  5058. export_symbols_cmds=$lt_export_symbols_cmds
  5059.  
  5060. # The commands to extract the exported symbol list from a shared archive.
  5061. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  5062.  
  5063. # Symbols that should not be listed in the preloaded symbols.
  5064. exclude_expsyms=$lt_exclude_expsyms
  5065.  
  5066. # Symbols that must always be exported.
  5067. include_expsyms=$lt_include_expsyms
  5068.  
  5069. # ### END LIBTOOL CONFIG
  5070.  
  5071. __EOF__
  5072.  
  5073.   case $host_os in
  5074.   aix3*)
  5075.     cat <<\EOF >> "${ofile}T"
  5076.  
  5077. # AIX sometimes has problems with the GCC collect2 program.  For some
  5078. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5079. # vanish in a puff of smoke.
  5080. if test "X${COLLECT_NAMES+set}" != Xset; then
  5081.   COLLECT_NAMES=
  5082.   export COLLECT_NAMES
  5083. fi
  5084. EOF
  5085.     ;;
  5086.   esac
  5087.  
  5088.   case $host_os in
  5089.   cygwin* | mingw* | pw32* | os2*)
  5090.     cat <<'EOF' >> "${ofile}T"
  5091.       # This is a source program that is used to create dlls on Windows
  5092.       # Don't remove nor modify the starting and closing comments
  5093. # /* ltdll.c starts here */
  5094. # #define WIN32_LEAN_AND_MEAN
  5095. # #include <windows.h>
  5096. # #undef WIN32_LEAN_AND_MEAN
  5097. # #include <stdio.h>
  5098. #
  5099. # #ifndef __CYGWIN__
  5100. # #  ifdef __CYGWIN32__
  5101. # #    define __CYGWIN__ __CYGWIN32__
  5102. # #  endif
  5103. # #endif
  5104. #
  5105. # #ifdef __cplusplus
  5106. # extern "C" {
  5107. # #endif
  5108. # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  5109. # #ifdef __cplusplus
  5110. # }
  5111. # #endif
  5112. #
  5113. # #ifdef __CYGWIN__
  5114. # #include <cygwin/cygwin_dll.h>
  5115. # DECLARE_CYGWIN_DLL( DllMain );
  5116. # #endif
  5117. # HINSTANCE __hDllInstance_base;
  5118. #
  5119. # BOOL APIENTRY
  5120. # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  5121. # {
  5122. #   __hDllInstance_base = hInst;
  5123. #   return TRUE;
  5124. # }
  5125. # /* ltdll.c ends here */
  5126.     # This is a source program that is used to create import libraries
  5127.     # on Windows for dlls which lack them. Don't remove nor modify the
  5128.     # starting and closing comments
  5129. # /* impgen.c starts here */
  5130. # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
  5131. #
  5132. #  This file is part of GNU libtool.
  5133. #
  5134. #  This program is free software; you can redistribute it and/or modify
  5135. #  it under the terms of the GNU General Public License as published by
  5136. #  the Free Software Foundation; either version 2 of the License, or
  5137. #  (at your option) any later version.
  5138. #
  5139. #  This program is distributed in the hope that it will be useful,
  5140. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  5141. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  5142. #  GNU General Public License for more details.
  5143. #
  5144. #  You should have received a copy of the GNU General Public License
  5145. #  along with this program; if not, write to the Free Software
  5146. #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  5147. #  */
  5148. #
  5149. # #include <stdio.h>        /* for printf() */
  5150. # #include <unistd.h>        /* for open(), lseek(), read() */
  5151. # #include <fcntl.h>        /* for O_RDONLY, O_BINARY */
  5152. # #include <string.h>        /* for strdup() */
  5153. #
  5154. # /* O_BINARY isn't required (or even defined sometimes) under Unix */
  5155. # #ifndef O_BINARY
  5156. # #define O_BINARY 0
  5157. # #endif
  5158. #
  5159. # static unsigned int
  5160. # pe_get16 (fd, offset)
  5161. #      int fd;
  5162. #      int offset;
  5163. # {
  5164. #   unsigned char b[2];
  5165. #   lseek (fd, offset, SEEK_SET);
  5166. #   read (fd, b, 2);
  5167. #   return b[0] + (b[1]<<8);
  5168. # }
  5169. #
  5170. # static unsigned int
  5171. # pe_get32 (fd, offset)
  5172. #     int fd;
  5173. #     int offset;
  5174. # {
  5175. #   unsigned char b[4];
  5176. #   lseek (fd, offset, SEEK_SET);
  5177. #   read (fd, b, 4);
  5178. #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  5179. # }
  5180. #
  5181. # static unsigned int
  5182. # pe_as32 (ptr)
  5183. #      void *ptr;
  5184. # {
  5185. #   unsigned char *b = ptr;
  5186. #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  5187. # }
  5188. #
  5189. # int
  5190. # main (argc, argv)
  5191. #     int argc;
  5192. #     char *argv[];
  5193. # {
  5194. #     int dll;
  5195. #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  5196. #     unsigned long export_rva, export_size, nsections, secptr, expptr;
  5197. #     unsigned long name_rvas, nexp;
  5198. #     unsigned char *expdata, *erva;
  5199. #     char *filename, *dll_name;
  5200. #
  5201. #     filename = argv[1];
  5202. #
  5203. #     dll = open(filename, O_RDONLY|O_BINARY);
  5204. #     if (dll < 1)
  5205. #     return 1;
  5206. #
  5207. #     dll_name = filename;
  5208. #
  5209. #     for (i=0; filename[i]; i++)
  5210. #     if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
  5211. #         dll_name = filename + i +1;
  5212. #
  5213. #     pe_header_offset = pe_get32 (dll, 0x3c);
  5214. #     opthdr_ofs = pe_header_offset + 4 + 20;
  5215. #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
  5216. #
  5217. #     if (num_entries < 1) /* no exports */
  5218. #     return 1;
  5219. #
  5220. #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
  5221. #     export_size = pe_get32 (dll, opthdr_ofs + 100);
  5222. #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  5223. #     secptr = (pe_header_offset + 4 + 20 +
  5224. #           pe_get16 (dll, pe_header_offset + 4 + 16));
  5225. #
  5226. #     expptr = 0;
  5227. #     for (i = 0; i < nsections; i++)
  5228. #     {
  5229. #     char sname[8];
  5230. #     unsigned long secptr1 = secptr + 40 * i;
  5231. #     unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  5232. #     unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  5233. #     unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  5234. #     lseek(dll, secptr1, SEEK_SET);
  5235. #     read(dll, sname, 8);
  5236. #     if (vaddr <= export_rva && vaddr+vsize > export_rva)
  5237. #     {
  5238. #         expptr = fptr + (export_rva - vaddr);
  5239. #         if (export_rva + export_size > vaddr + vsize)
  5240. #         export_size = vsize - (export_rva - vaddr);
  5241. #         break;
  5242. #     }
  5243. #     }
  5244. #
  5245. #     expdata = (unsigned char*)malloc(export_size);
  5246. #     lseek (dll, expptr, SEEK_SET);
  5247. #     read (dll, expdata, export_size);
  5248. #     erva = expdata - export_rva;
  5249. #
  5250. #     nexp = pe_as32 (expdata+24);
  5251. #     name_rvas = pe_as32 (expdata+32);
  5252. #
  5253. #     printf ("EXPORTS\n");
  5254. #     for (i = 0; i<nexp; i++)
  5255. #     {
  5256. #     unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  5257. #     printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  5258. #     }
  5259. #
  5260. #     return 0;
  5261. # }
  5262. # /* impgen.c ends here */
  5263.  
  5264. EOF
  5265.     ;;
  5266.   esac
  5267.  
  5268.   # We use sed instead of cat because bash on DJGPP gets confused if
  5269.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  5270.   # text mode, it properly converts lines to CR/LF.  This bash problem
  5271.   # is reportedly fixed, but why not run on old versions too?
  5272.   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  5273.  
  5274.   mv -f "${ofile}T" "$ofile" || \
  5275.     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  5276.   chmod +x "$ofile"
  5277. fi
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283. # This can be used to rebuild libtool when needed
  5284. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  5285.  
  5286. # Always use our own libtool.
  5287. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  5288.  
  5289. # Prevent multiple expansion
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295. # Make sure we can run config.sub.
  5296. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  5297. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  5298. fi
  5299.  
  5300. echo $ac_n "checking host system type""... $ac_c" 1>&6
  5301. echo "configure:5302: checking host system type" >&5
  5302.  
  5303. host_alias=$host
  5304. case "$host_alias" in
  5305. NONE)
  5306.   case $nonopt in
  5307.   NONE)
  5308.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  5309.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  5310.     fi ;;
  5311.   *) host_alias=$nonopt ;;
  5312.   esac ;;
  5313. esac
  5314.  
  5315. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  5316. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  5317. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  5318. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  5319. echo "$ac_t""$host" 1>&6
  5320.  
  5321.  
  5322.  
  5323. cflags_save="$CFLAGS"
  5324. ldflags_save="$LDFLAGS"
  5325. if test -z "$GCC"; then
  5326.     case $host in 
  5327.     *-*-irix*)
  5328.                         if test -z "$CC"; then
  5329.             CC=cc
  5330.         fi
  5331.         DEBUG="-g -signed" 
  5332.         CFLAGS="-O2 -w -signed"
  5333.         PROFILE="-p -g3 -O2 -signed" ;;
  5334.     sparc-sun-solaris*)
  5335.         DEBUG="-v -g"
  5336.         CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
  5337.         PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
  5338.     *)
  5339.         DEBUG="-g"
  5340.         CFLAGS="-O"
  5341.         PROFILE="-g -p" ;;
  5342.         esac
  5343. else
  5344.  
  5345.     case $host in 
  5346.     *86-*-linux*)
  5347.         DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  5348.         CFLAGS="-O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char"
  5349. #                  PROFILE="-Wall -W -pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static"
  5350.         PROFILE="-Wall -W -pg -g -O20 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline"
  5351.  
  5352.         # glibc < 2.1.3 has a serious FP bug in the math inline header
  5353.         # that will cripple Vorbis.  Look to see if the magic FP stack
  5354.         # clobber is missing in the mathinline header, thus indicating
  5355.         # the buggy version
  5356.  
  5357.         cat > conftest.$ac_ext <<EOF
  5358. #line 5359 "configure"
  5359. #include "confdefs.h"
  5360.  
  5361.                 #define __LIBC_INTERNAL_MATH_INLINES 1
  5362.                      #define __OPTIMIZE__
  5363.                 #include <math.h>
  5364.                 
  5365. EOF
  5366. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5367.   egrep "log10.*fldlg2.*fxch" >/dev/null 2>&1; then
  5368.   rm -rf conftest*
  5369.   bad=maybe
  5370. else
  5371.   rm -rf conftest*
  5372.   bad=no
  5373. fi
  5374. rm -f conftest*
  5375.  
  5376.         if test ${bad} = "maybe" ;then
  5377.               cat > conftest.$ac_ext <<EOF
  5378. #line 5379 "configure"
  5379. #include "confdefs.h"
  5380.  
  5381.                     #define __LIBC_INTERNAL_MATH_INLINES 1
  5382.                          #define __OPTIMIZE__
  5383.                     #include <math.h>
  5384.                     
  5385. EOF
  5386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5387.   egrep "log10.*fldlg2.*fxch.*st\([0123456789]*\)" >/dev/null 2>&1; then
  5388.   rm -rf conftest*
  5389.   bad=no
  5390. else
  5391.   rm -rf conftest*
  5392.   bad=yes
  5393. fi
  5394. rm -f conftest*
  5395.  
  5396.         fi
  5397.          if test ${bad} = "yes" ;then
  5398.  echo "configure: warning:                                                         " 1>&2
  5399.  echo "configure: warning: ********************************************************" 1>&2
  5400.  echo "configure: warning: * The glibc headers on this machine have a serious bug *" 1>&2
  5401.  echo "configure: warning: * in /usr/include/bits/mathinline.h  This bug affects  *" 1>&2
  5402.  echo "configure: warning: * all floating point code, not just Ogg, built on this *" 1>&2
  5403.  echo "configure: warning: * machine.  Upgrading to glibc 2.1.3 is strongly urged *" 1>&2
  5404.  echo "configure: warning: * to correct the problem.  Note that upgrading glibc   *" 1>&2
  5405.  echo "configure: warning: * will not fix any previously built programs; this is  *" 1>&2
  5406.  echo "configure: warning: * a compile-time time bug.                             *" 1>&2
  5407.  echo "configure: warning: * To work around the problem for this build of Ogg,    *" 1>&2
  5408.  echo "configure: warning: * autoconf is disabling all math inlining.  This will  *" 1>&2
  5409.  echo "configure: warning: * hurt Ogg performace but is necessary for an Ogg that *" 1>&2
  5410.  echo "configure: warning: * will actually work.  Once glibc is upgraded, rerun   *" 1>&2
  5411.  echo "configure: warning: * configure and make to build with inlining.           *" 1>&2
  5412.  echo "configure: warning: ********************************************************" 1>&2
  5413.  echo "configure: warning:                                                         " 1>&2
  5414.  
  5415.           CFLAGS=${OPT}" -D__NO_MATH_INLINES"
  5416.           PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
  5417.           fi;;
  5418.     *-*-linux*)
  5419.         DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
  5420.         CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
  5421.         PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
  5422.     sparc-sun-*)
  5423.         DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char -mv8"
  5424.         CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8"
  5425.         PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8" ;;
  5426.     *-*-darwin*)
  5427.         DEBUG="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O0 -fsigned-char"
  5428.         CFLAGS="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -O4 -ffast-math -fsigned-char"
  5429.         PROFILE="-DDARWIN -fno-common -force_cpusubtype_ALL -Wall -g -pg -O4 -ffast-math -fsigned-char";;
  5430.     *)
  5431.         DEBUG="-g -Wall -W -D__NO_MATH_INLINES -fsigned-char"
  5432.         CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
  5433.         PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
  5434.         esac
  5435. fi
  5436. CFLAGS="$CFLAGS $cflags_save"
  5437. LDFLAGS="$LDFLAGS $ldflags_save"
  5438.  
  5439.  
  5440. ac_safe=`echo "memory.h" | sed 'y%./+-%__p_%'`
  5441. echo $ac_n "checking for memory.h""... $ac_c" 1>&6
  5442. echo "configure:5443: checking for memory.h" >&5
  5443. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5444.   echo $ac_n "(cached) $ac_c" 1>&6
  5445. else
  5446.   cat > conftest.$ac_ext <<EOF
  5447. #line 5448 "configure"
  5448. #include "confdefs.h"
  5449. #include <memory.h>
  5450. EOF
  5451. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5452. { (eval echo configure:5453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5453. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5454. if test -z "$ac_err"; then
  5455.   rm -rf conftest*
  5456.   eval "ac_cv_header_$ac_safe=yes"
  5457. else
  5458.   echo "$ac_err" >&5
  5459.   echo "configure: failed program was:" >&5
  5460.   cat conftest.$ac_ext >&5
  5461.   rm -rf conftest*
  5462.   eval "ac_cv_header_$ac_safe=no"
  5463. fi
  5464. rm -f conftest*
  5465. fi
  5466. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5467.   echo "$ac_t""yes" 1>&6
  5468.   CFLAGS="$CFLAGS -DUSE_MEMORY_H"
  5469. else
  5470.   echo "$ac_t""no" 1>&6
  5471. :
  5472. fi
  5473.  
  5474.  
  5475.  
  5476.  
  5477.  
  5478. echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
  5479. echo "configure:5480: checking for cos in -lm" >&5
  5480. ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
  5481. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5482.   echo $ac_n "(cached) $ac_c" 1>&6
  5483. else
  5484.   ac_save_LIBS="$LIBS"
  5485. LIBS="-lm  $LIBS"
  5486. cat > conftest.$ac_ext <<EOF
  5487. #line 5488 "configure"
  5488. #include "confdefs.h"
  5489. /* Override any gcc2 internal prototype to avoid an error.  */
  5490. /* We use char because int might match the return type of a gcc2
  5491.     builtin and then its argument prototype would still apply.  */
  5492. char cos();
  5493.  
  5494. int main() {
  5495. cos()
  5496. ; return 0; }
  5497. EOF
  5498. if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5499.   rm -rf conftest*
  5500.   eval "ac_cv_lib_$ac_lib_var=yes"
  5501. else
  5502.   echo "configure: failed program was:" >&5
  5503.   cat conftest.$ac_ext >&5
  5504.   rm -rf conftest*
  5505.   eval "ac_cv_lib_$ac_lib_var=no"
  5506. fi
  5507. rm -f conftest*
  5508. LIBS="$ac_save_LIBS"
  5509.  
  5510. fi
  5511. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5512.   echo "$ac_t""yes" 1>&6
  5513.   LIBS="-lm"
  5514. else
  5515.   echo "$ac_t""no" 1>&6
  5516. LIBS=""
  5517. fi
  5518.  
  5519. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  5520. echo "configure:5521: checking for pthread_create in -lpthread" >&5
  5521. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  5522. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5523.   echo $ac_n "(cached) $ac_c" 1>&6
  5524. else
  5525.   ac_save_LIBS="$LIBS"
  5526. LIBS="-lpthread  $LIBS"
  5527. cat > conftest.$ac_ext <<EOF
  5528. #line 5529 "configure"
  5529. #include "confdefs.h"
  5530. /* Override any gcc2 internal prototype to avoid an error.  */
  5531. /* We use char because int might match the return type of a gcc2
  5532.     builtin and then its argument prototype would still apply.  */
  5533. char pthread_create();
  5534.  
  5535. int main() {
  5536. pthread_create()
  5537. ; return 0; }
  5538. EOF
  5539. if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5540.   rm -rf conftest*
  5541.   eval "ac_cv_lib_$ac_lib_var=yes"
  5542. else
  5543.   echo "configure: failed program was:" >&5
  5544.   cat conftest.$ac_ext >&5
  5545.   rm -rf conftest*
  5546.   eval "ac_cv_lib_$ac_lib_var=no"
  5547. fi
  5548. rm -f conftest*
  5549. LIBS="$ac_save_LIBS"
  5550.  
  5551. fi
  5552. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5553.   echo "$ac_t""yes" 1>&6
  5554.   pthread_lib="-lpthread"
  5555. else
  5556.   echo "$ac_t""no" 1>&6
  5557. :
  5558. fi
  5559.  
  5560.  
  5561. # Check whether --with-ogg or --without-ogg was given.
  5562. if test "${with_ogg+set}" = set; then
  5563.   withval="$with_ogg"
  5564.   ogg_prefix="$withval"
  5565. else
  5566.   ogg_prefix=""
  5567. fi
  5568.  
  5569. # Check whether --with-ogg-libraries or --without-ogg-libraries was given.
  5570. if test "${with_ogg_libraries+set}" = set; then
  5571.   withval="$with_ogg_libraries"
  5572.   ogg_libraries="$withval"
  5573. else
  5574.   ogg_libraries=""
  5575. fi
  5576.  
  5577. # Check whether --with-ogg-includes or --without-ogg-includes was given.
  5578. if test "${with_ogg_includes+set}" = set; then
  5579.   withval="$with_ogg_includes"
  5580.   ogg_includes="$withval"
  5581. else
  5582.   ogg_includes=""
  5583. fi
  5584.  
  5585. # Check whether --enable-oggtest or --disable-oggtest was given.
  5586. if test "${enable_oggtest+set}" = set; then
  5587.   enableval="$enable_oggtest"
  5588.   :
  5589. else
  5590.   enable_oggtest=yes
  5591. fi
  5592.  
  5593.  
  5594.   if test "x$ogg_libraries" != "x" ; then
  5595.     OGG_LIBS="-L$ogg_libraries"
  5596.   elif test "x$ogg_prefix" != "x" ; then
  5597.     OGG_LIBS="-L$ogg_prefix/lib"
  5598.   elif test "x$prefix" != "xNONE" ; then
  5599.     OGG_LIBS="-L$prefix/lib"
  5600.   fi
  5601.  
  5602.   OGG_LIBS="$OGG_LIBS -logg"
  5603.  
  5604.   if test "x$ogg_includes" != "x" ; then
  5605.     OGG_CFLAGS="-I$ogg_includes"
  5606.   elif test "x$ogg_prefix" != "x" ; then
  5607.     OGG_CFLAGS="-I$ogg_prefix/include"
  5608.   elif test "x$prefix" != "xNONE"; then
  5609.     OGG_CFLAGS="-I$prefix/include"
  5610.   fi
  5611.  
  5612.   echo $ac_n "checking for Ogg""... $ac_c" 1>&6
  5613. echo "configure:5614: checking for Ogg" >&5
  5614.   no_ogg=""
  5615.  
  5616.  
  5617.   if test "x$enable_oggtest" = "xyes" ; then
  5618.     ac_save_CFLAGS="$CFLAGS"
  5619.     ac_save_LIBS="$LIBS"
  5620.     CFLAGS="$CFLAGS $OGG_CFLAGS"
  5621.     LIBS="$LIBS $OGG_LIBS"
  5622.       rm -f conf.oggtest
  5623.       if test "$cross_compiling" = yes; then
  5624.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  5625. else
  5626.   cat > conftest.$ac_ext <<EOF
  5627. #line 5628 "configure"
  5628. #include "confdefs.h"
  5629.  
  5630. #include <stdio.h>
  5631. #include <stdlib.h>
  5632. #include <string.h>
  5633. #include <ogg/ogg.h>
  5634.  
  5635. int main ()
  5636. {
  5637.   system("touch conf.oggtest");
  5638.   return 0;
  5639. }
  5640.  
  5641.  
  5642. EOF
  5643. if { (eval echo configure:5644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5644. then
  5645.   :
  5646. else
  5647.   echo "configure: failed program was:" >&5
  5648.   cat conftest.$ac_ext >&5
  5649.   rm -fr conftest*
  5650.   no_ogg=yes
  5651. fi
  5652. rm -fr conftest*
  5653. fi
  5654.  
  5655.        CFLAGS="$ac_save_CFLAGS"
  5656.        LIBS="$ac_save_LIBS"
  5657.   fi
  5658.  
  5659.   if test "x$no_ogg" = "x" ; then
  5660.      echo "$ac_t""yes" 1>&6
  5661.      :     
  5662.   else
  5663.      echo "$ac_t""no" 1>&6
  5664.      if test -f conf.oggtest ; then
  5665.        :
  5666.      else
  5667.        echo "*** Could not run Ogg test program, checking why..."
  5668.        CFLAGS="$CFLAGS $OGG_CFLAGS"
  5669.        LIBS="$LIBS $OGG_LIBS"
  5670.        cat > conftest.$ac_ext <<EOF
  5671. #line 5672 "configure"
  5672. #include "confdefs.h"
  5673.  
  5674. #include <stdio.h>
  5675. #include <ogg/ogg.h>
  5676.  
  5677. int main() {
  5678.  return 0; 
  5679. ; return 0; }
  5680. EOF
  5681. if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5682.   rm -rf conftest*
  5683.    echo "*** The test program compiled, but did not run. This usually means"
  5684.        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
  5685.        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
  5686.        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5687.        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  5688.        echo "*** is required on your system"
  5689.        echo "***"
  5690.        echo "*** If you have an old version installed, it is best to remove it, although"
  5691.        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5692. else
  5693.   echo "configure: failed program was:" >&5
  5694.   cat conftest.$ac_ext >&5
  5695.   rm -rf conftest*
  5696.    echo "*** The test program failed to compile or link. See the file config.log for the"
  5697.        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
  5698.        echo "*** or that you have moved Ogg since it was installed. In the latter case, you"
  5699.        echo "*** may want to edit the ogg-config script: $OGG_CONFIG" 
  5700. fi
  5701. rm -f conftest*
  5702.        CFLAGS="$ac_save_CFLAGS"
  5703.        LIBS="$ac_save_LIBS"
  5704.      fi
  5705.      OGG_CFLAGS=""
  5706.      OGG_LIBS=""
  5707.      { echo "configure: error: must have Ogg installed!" 1>&2; exit 1; }
  5708.   fi
  5709.   
  5710.   
  5711.   rm -f conf.oggtest
  5712.  
  5713.  
  5714.  
  5715. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5716. # for constant arguments.  Useless!
  5717. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  5718. echo "configure:5719: checking for working alloca.h" >&5
  5719. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  5720.   echo $ac_n "(cached) $ac_c" 1>&6
  5721. else
  5722.   cat > conftest.$ac_ext <<EOF
  5723. #line 5724 "configure"
  5724. #include "confdefs.h"
  5725. #include <alloca.h>
  5726. int main() {
  5727. char *p = alloca(2 * sizeof(int));
  5728. ; return 0; }
  5729. EOF
  5730. if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5731.   rm -rf conftest*
  5732.   ac_cv_header_alloca_h=yes
  5733. else
  5734.   echo "configure: failed program was:" >&5
  5735.   cat conftest.$ac_ext >&5
  5736.   rm -rf conftest*
  5737.   ac_cv_header_alloca_h=no
  5738. fi
  5739. rm -f conftest*
  5740. fi
  5741.  
  5742. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  5743. if test $ac_cv_header_alloca_h = yes; then
  5744.   cat >> confdefs.h <<\EOF
  5745. #define HAVE_ALLOCA_H 1
  5746. EOF
  5747.  
  5748. fi
  5749.  
  5750. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  5751. echo "configure:5752: checking for alloca" >&5
  5752. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  5753.   echo $ac_n "(cached) $ac_c" 1>&6
  5754. else
  5755.   cat > conftest.$ac_ext <<EOF
  5756. #line 5757 "configure"
  5757. #include "confdefs.h"
  5758.  
  5759. #ifdef __GNUC__
  5760. # define alloca __builtin_alloca
  5761. #else
  5762. # ifdef _MSC_VER
  5763. #  include <malloc.h>
  5764. #  define alloca _alloca
  5765. # else
  5766. #  if HAVE_ALLOCA_H
  5767. #   include <alloca.h>
  5768. #  else
  5769. #   ifdef _AIX
  5770.  #pragma alloca
  5771. #   else
  5772. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  5773. char *alloca ();
  5774. #    endif
  5775. #   endif
  5776. #  endif
  5777. # endif
  5778. #endif
  5779.  
  5780. int main() {
  5781. char *p = (char *) alloca(1);
  5782. ; return 0; }
  5783. EOF
  5784. if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5785.   rm -rf conftest*
  5786.   ac_cv_func_alloca_works=yes
  5787. else
  5788.   echo "configure: failed program was:" >&5
  5789.   cat conftest.$ac_ext >&5
  5790.   rm -rf conftest*
  5791.   ac_cv_func_alloca_works=no
  5792. fi
  5793. rm -f conftest*
  5794. fi
  5795.  
  5796. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  5797. if test $ac_cv_func_alloca_works = yes; then
  5798.   cat >> confdefs.h <<\EOF
  5799. #define HAVE_ALLOCA 1
  5800. EOF
  5801.  
  5802. fi
  5803.  
  5804. if test $ac_cv_func_alloca_works = no; then
  5805.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5806.   # that cause trouble.  Some versions do not even contain alloca or
  5807.   # contain a buggy version.  If you still want to use their alloca,
  5808.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  5809.   ALLOCA=alloca.${ac_objext}
  5810.   cat >> confdefs.h <<\EOF
  5811. #define C_ALLOCA 1
  5812. EOF
  5813.  
  5814.  
  5815. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  5816. echo "configure:5817: checking whether alloca needs Cray hooks" >&5
  5817. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  5818.   echo $ac_n "(cached) $ac_c" 1>&6
  5819. else
  5820.   cat > conftest.$ac_ext <<EOF
  5821. #line 5822 "configure"
  5822. #include "confdefs.h"
  5823. #if defined(CRAY) && ! defined(CRAY2)
  5824. webecray
  5825. #else
  5826. wenotbecray
  5827. #endif
  5828.  
  5829. EOF
  5830. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5831.   egrep "webecray" >/dev/null 2>&1; then
  5832.   rm -rf conftest*
  5833.   ac_cv_os_cray=yes
  5834. else
  5835.   rm -rf conftest*
  5836.   ac_cv_os_cray=no
  5837. fi
  5838. rm -f conftest*
  5839.  
  5840. fi
  5841.  
  5842. echo "$ac_t""$ac_cv_os_cray" 1>&6
  5843. if test $ac_cv_os_cray = yes; then
  5844. for ac_func in _getb67 GETB67 getb67; do
  5845.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5846. echo "configure:5847: checking for $ac_func" >&5
  5847. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5848.   echo $ac_n "(cached) $ac_c" 1>&6
  5849. else
  5850.   cat > conftest.$ac_ext <<EOF
  5851. #line 5852 "configure"
  5852. #include "confdefs.h"
  5853. /* System header to define __stub macros and hopefully few prototypes,
  5854.     which can conflict with char $ac_func(); below.  */
  5855. #include <assert.h>
  5856. /* Override any gcc2 internal prototype to avoid an error.  */
  5857. /* We use char because int might match the return type of a gcc2
  5858.     builtin and then its argument prototype would still apply.  */
  5859. char $ac_func();
  5860.  
  5861. int main() {
  5862.  
  5863. /* The GNU C library defines this for functions which it implements
  5864.     to always fail with ENOSYS.  Some functions are actually named
  5865.     something starting with __ and the normal name is an alias.  */
  5866. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5867. choke me
  5868. #else
  5869. $ac_func();
  5870. #endif
  5871.  
  5872. ; return 0; }
  5873. EOF
  5874. if { (eval echo configure:5875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5875.   rm -rf conftest*
  5876.   eval "ac_cv_func_$ac_func=yes"
  5877. else
  5878.   echo "configure: failed program was:" >&5
  5879.   cat conftest.$ac_ext >&5
  5880.   rm -rf conftest*
  5881.   eval "ac_cv_func_$ac_func=no"
  5882. fi
  5883. rm -f conftest*
  5884. fi
  5885.  
  5886. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  5887.   echo "$ac_t""yes" 1>&6
  5888.   cat >> confdefs.h <<EOF
  5889. #define CRAY_STACKSEG_END $ac_func
  5890. EOF
  5891.  
  5892.   break
  5893. else
  5894.   echo "$ac_t""no" 1>&6
  5895. fi
  5896.  
  5897. done
  5898. fi
  5899.  
  5900. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  5901. echo "configure:5902: checking stack direction for C alloca" >&5
  5902. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  5903.   echo $ac_n "(cached) $ac_c" 1>&6
  5904. else
  5905.   if test "$cross_compiling" = yes; then
  5906.   ac_cv_c_stack_direction=0
  5907. else
  5908.   cat > conftest.$ac_ext <<EOF
  5909. #line 5910 "configure"
  5910. #include "confdefs.h"
  5911. find_stack_direction ()
  5912. {
  5913.   static char *addr = 0;
  5914.   auto char dummy;
  5915.   if (addr == 0)
  5916.     {
  5917.       addr = &dummy;
  5918.       return find_stack_direction ();
  5919.     }
  5920.   else
  5921.     return (&dummy > addr) ? 1 : -1;
  5922. }
  5923. main ()
  5924. {
  5925.   exit (find_stack_direction() < 0);
  5926. }
  5927. EOF
  5928. if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5929. then
  5930.   ac_cv_c_stack_direction=1
  5931. else
  5932.   echo "configure: failed program was:" >&5
  5933.   cat conftest.$ac_ext >&5
  5934.   rm -fr conftest*
  5935.   ac_cv_c_stack_direction=-1
  5936. fi
  5937. rm -fr conftest*
  5938. fi
  5939.  
  5940. fi
  5941.  
  5942. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  5943. cat >> confdefs.h <<EOF
  5944. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5945. EOF
  5946.  
  5947. fi
  5948.  
  5949. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  5950. echo "configure:5951: checking for 8-bit clean memcmp" >&5
  5951. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  5952.   echo $ac_n "(cached) $ac_c" 1>&6
  5953. else
  5954.   if test "$cross_compiling" = yes; then
  5955.   ac_cv_func_memcmp_clean=no
  5956. else
  5957.   cat > conftest.$ac_ext <<EOF
  5958. #line 5959 "configure"
  5959. #include "confdefs.h"
  5960.  
  5961. main()
  5962. {
  5963.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  5964.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  5965. }
  5966.  
  5967. EOF
  5968. if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5969. then
  5970.   ac_cv_func_memcmp_clean=yes
  5971. else
  5972.   echo "configure: failed program was:" >&5
  5973.   cat conftest.$ac_ext >&5
  5974.   rm -fr conftest*
  5975.   ac_cv_func_memcmp_clean=no
  5976. fi
  5977. rm -fr conftest*
  5978. fi
  5979.  
  5980. fi
  5981.  
  5982. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  5983. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
  5984.  
  5985.  
  5986. for ac_func in sqrtf
  5987. do
  5988. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  5989. echo "configure:5990: checking for $ac_func" >&5
  5990. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  5991.   echo $ac_n "(cached) $ac_c" 1>&6
  5992. else
  5993.   cat > conftest.$ac_ext <<EOF
  5994. #line 5995 "configure"
  5995. #include "confdefs.h"
  5996. /* System header to define __stub macros and hopefully few prototypes,
  5997.     which can conflict with char $ac_func(); below.  */
  5998. #include <assert.h>
  5999. /* Override any gcc2 internal prototype to avoid an error.  */
  6000. /* We use char because int might match the return type of a gcc2
  6001.     builtin and then its argument prototype would still apply.  */
  6002. char $ac_func();
  6003.  
  6004. int main() {
  6005.  
  6006. /* The GNU C library defines this for functions which it implements
  6007.     to always fail with ENOSYS.  Some functions are actually named
  6008.     something starting with __ and the normal name is an alias.  */
  6009. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6010. choke me
  6011. #else
  6012. $ac_func();
  6013. #endif
  6014.  
  6015. ; return 0; }
  6016. EOF
  6017. if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6018.   rm -rf conftest*
  6019.   eval "ac_cv_func_$ac_func=yes"
  6020. else
  6021.   echo "configure: failed program was:" >&5
  6022.   cat conftest.$ac_ext >&5
  6023.   rm -rf conftest*
  6024.   eval "ac_cv_func_$ac_func=no"
  6025. fi
  6026. rm -f conftest*
  6027. fi
  6028.  
  6029. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6030.   echo "$ac_t""yes" 1>&6
  6031.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6032.   cat >> confdefs.h <<EOF
  6033. #define $ac_tr_func 1
  6034. EOF
  6035.  
  6036. else
  6037.   echo "$ac_t""no" 1>&6
  6038. fi
  6039. done
  6040.  
  6041. for ac_func in logf
  6042. do
  6043. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6044. echo "configure:6045: checking for $ac_func" >&5
  6045. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6046.   echo $ac_n "(cached) $ac_c" 1>&6
  6047. else
  6048.   cat > conftest.$ac_ext <<EOF
  6049. #line 6050 "configure"
  6050. #include "confdefs.h"
  6051. /* System header to define __stub macros and hopefully few prototypes,
  6052.     which can conflict with char $ac_func(); below.  */
  6053. #include <assert.h>
  6054. /* Override any gcc2 internal prototype to avoid an error.  */
  6055. /* We use char because int might match the return type of a gcc2
  6056.     builtin and then its argument prototype would still apply.  */
  6057. char $ac_func();
  6058.  
  6059. int main() {
  6060.  
  6061. /* The GNU C library defines this for functions which it implements
  6062.     to always fail with ENOSYS.  Some functions are actually named
  6063.     something starting with __ and the normal name is an alias.  */
  6064. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6065. choke me
  6066. #else
  6067. $ac_func();
  6068. #endif
  6069.  
  6070. ; return 0; }
  6071. EOF
  6072. if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6073.   rm -rf conftest*
  6074.   eval "ac_cv_func_$ac_func=yes"
  6075. else
  6076.   echo "configure: failed program was:" >&5
  6077.   cat conftest.$ac_ext >&5
  6078.   rm -rf conftest*
  6079.   eval "ac_cv_func_$ac_func=no"
  6080. fi
  6081. rm -f conftest*
  6082. fi
  6083.  
  6084. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6085.   echo "$ac_t""yes" 1>&6
  6086.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6087.   cat >> confdefs.h <<EOF
  6088. #define $ac_tr_func 1
  6089. EOF
  6090.  
  6091. else
  6092.   echo "$ac_t""no" 1>&6
  6093. fi
  6094. done
  6095.  
  6096. for ac_func in expf
  6097. do
  6098. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6099. echo "configure:6100: checking for $ac_func" >&5
  6100. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6101.   echo $ac_n "(cached) $ac_c" 1>&6
  6102. else
  6103.   cat > conftest.$ac_ext <<EOF
  6104. #line 6105 "configure"
  6105. #include "confdefs.h"
  6106. /* System header to define __stub macros and hopefully few prototypes,
  6107.     which can conflict with char $ac_func(); below.  */
  6108. #include <assert.h>
  6109. /* Override any gcc2 internal prototype to avoid an error.  */
  6110. /* We use char because int might match the return type of a gcc2
  6111.     builtin and then its argument prototype would still apply.  */
  6112. char $ac_func();
  6113.  
  6114. int main() {
  6115.  
  6116. /* The GNU C library defines this for functions which it implements
  6117.     to always fail with ENOSYS.  Some functions are actually named
  6118.     something starting with __ and the normal name is an alias.  */
  6119. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6120. choke me
  6121. #else
  6122. $ac_func();
  6123. #endif
  6124.  
  6125. ; return 0; }
  6126. EOF
  6127. if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6128.   rm -rf conftest*
  6129.   eval "ac_cv_func_$ac_func=yes"
  6130. else
  6131.   echo "configure: failed program was:" >&5
  6132.   cat conftest.$ac_ext >&5
  6133.   rm -rf conftest*
  6134.   eval "ac_cv_func_$ac_func=no"
  6135. fi
  6136. rm -f conftest*
  6137. fi
  6138.  
  6139. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6140.   echo "$ac_t""yes" 1>&6
  6141.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6142.   cat >> confdefs.h <<EOF
  6143. #define $ac_tr_func 1
  6144. EOF
  6145.  
  6146. else
  6147.   echo "$ac_t""no" 1>&6
  6148. fi
  6149. done
  6150.  
  6151. for ac_func in acosf
  6152. do
  6153. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6154. echo "configure:6155: checking for $ac_func" >&5
  6155. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6156.   echo $ac_n "(cached) $ac_c" 1>&6
  6157. else
  6158.   cat > conftest.$ac_ext <<EOF
  6159. #line 6160 "configure"
  6160. #include "confdefs.h"
  6161. /* System header to define __stub macros and hopefully few prototypes,
  6162.     which can conflict with char $ac_func(); below.  */
  6163. #include <assert.h>
  6164. /* Override any gcc2 internal prototype to avoid an error.  */
  6165. /* We use char because int might match the return type of a gcc2
  6166.     builtin and then its argument prototype would still apply.  */
  6167. char $ac_func();
  6168.  
  6169. int main() {
  6170.  
  6171. /* The GNU C library defines this for functions which it implements
  6172.     to always fail with ENOSYS.  Some functions are actually named
  6173.     something starting with __ and the normal name is an alias.  */
  6174. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6175. choke me
  6176. #else
  6177. $ac_func();
  6178. #endif
  6179.  
  6180. ; return 0; }
  6181. EOF
  6182. if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6183.   rm -rf conftest*
  6184.   eval "ac_cv_func_$ac_func=yes"
  6185. else
  6186.   echo "configure: failed program was:" >&5
  6187.   cat conftest.$ac_ext >&5
  6188.   rm -rf conftest*
  6189.   eval "ac_cv_func_$ac_func=no"
  6190. fi
  6191. rm -f conftest*
  6192. fi
  6193.  
  6194. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6195.   echo "$ac_t""yes" 1>&6
  6196.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6197.   cat >> confdefs.h <<EOF
  6198. #define $ac_tr_func 1
  6199. EOF
  6200.  
  6201. else
  6202.   echo "$ac_t""no" 1>&6
  6203. fi
  6204. done
  6205.  
  6206. for ac_func in atanf
  6207. do
  6208. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6209. echo "configure:6210: checking for $ac_func" >&5
  6210. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6211.   echo $ac_n "(cached) $ac_c" 1>&6
  6212. else
  6213.   cat > conftest.$ac_ext <<EOF
  6214. #line 6215 "configure"
  6215. #include "confdefs.h"
  6216. /* System header to define __stub macros and hopefully few prototypes,
  6217.     which can conflict with char $ac_func(); below.  */
  6218. #include <assert.h>
  6219. /* Override any gcc2 internal prototype to avoid an error.  */
  6220. /* We use char because int might match the return type of a gcc2
  6221.     builtin and then its argument prototype would still apply.  */
  6222. char $ac_func();
  6223.  
  6224. int main() {
  6225.  
  6226. /* The GNU C library defines this for functions which it implements
  6227.     to always fail with ENOSYS.  Some functions are actually named
  6228.     something starting with __ and the normal name is an alias.  */
  6229. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6230. choke me
  6231. #else
  6232. $ac_func();
  6233. #endif
  6234.  
  6235. ; return 0; }
  6236. EOF
  6237. if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6238.   rm -rf conftest*
  6239.   eval "ac_cv_func_$ac_func=yes"
  6240. else
  6241.   echo "configure: failed program was:" >&5
  6242.   cat conftest.$ac_ext >&5
  6243.   rm -rf conftest*
  6244.   eval "ac_cv_func_$ac_func=no"
  6245. fi
  6246. rm -f conftest*
  6247. fi
  6248.  
  6249. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6250.   echo "$ac_t""yes" 1>&6
  6251.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6252.   cat >> confdefs.h <<EOF
  6253. #define $ac_tr_func 1
  6254. EOF
  6255.  
  6256. else
  6257.   echo "$ac_t""no" 1>&6
  6258. fi
  6259. done
  6260.  
  6261. for ac_func in frexpf
  6262. do
  6263. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6264. echo "configure:6265: checking for $ac_func" >&5
  6265. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6266.   echo $ac_n "(cached) $ac_c" 1>&6
  6267. else
  6268.   cat > conftest.$ac_ext <<EOF
  6269. #line 6270 "configure"
  6270. #include "confdefs.h"
  6271. /* System header to define __stub macros and hopefully few prototypes,
  6272.     which can conflict with char $ac_func(); below.  */
  6273. #include <assert.h>
  6274. /* Override any gcc2 internal prototype to avoid an error.  */
  6275. /* We use char because int might match the return type of a gcc2
  6276.     builtin and then its argument prototype would still apply.  */
  6277. char $ac_func();
  6278.  
  6279. int main() {
  6280.  
  6281. /* The GNU C library defines this for functions which it implements
  6282.     to always fail with ENOSYS.  Some functions are actually named
  6283.     something starting with __ and the normal name is an alias.  */
  6284. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6285. choke me
  6286. #else
  6287. $ac_func();
  6288. #endif
  6289.  
  6290. ; return 0; }
  6291. EOF
  6292. if { (eval echo configure:6293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6293.   rm -rf conftest*
  6294.   eval "ac_cv_func_$ac_func=yes"
  6295. else
  6296.   echo "configure: failed program was:" >&5
  6297.   cat conftest.$ac_ext >&5
  6298.   rm -rf conftest*
  6299.   eval "ac_cv_func_$ac_func=no"
  6300. fi
  6301. rm -f conftest*
  6302. fi
  6303.  
  6304. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6305.   echo "$ac_t""yes" 1>&6
  6306.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6307.   cat >> confdefs.h <<EOF
  6308. #define $ac_tr_func 1
  6309. EOF
  6310.  
  6311. else
  6312.   echo "$ac_t""no" 1>&6
  6313. fi
  6314. done
  6315.  
  6316. for ac_func in rintf
  6317. do
  6318. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6319. echo "configure:6320: checking for $ac_func" >&5
  6320. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6321.   echo $ac_n "(cached) $ac_c" 1>&6
  6322. else
  6323.   cat > conftest.$ac_ext <<EOF
  6324. #line 6325 "configure"
  6325. #include "confdefs.h"
  6326. /* System header to define __stub macros and hopefully few prototypes,
  6327.     which can conflict with char $ac_func(); below.  */
  6328. #include <assert.h>
  6329. /* Override any gcc2 internal prototype to avoid an error.  */
  6330. /* We use char because int might match the return type of a gcc2
  6331.     builtin and then its argument prototype would still apply.  */
  6332. char $ac_func();
  6333.  
  6334. int main() {
  6335.  
  6336. /* The GNU C library defines this for functions which it implements
  6337.     to always fail with ENOSYS.  Some functions are actually named
  6338.     something starting with __ and the normal name is an alias.  */
  6339. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6340. choke me
  6341. #else
  6342. $ac_func();
  6343. #endif
  6344.  
  6345. ; return 0; }
  6346. EOF
  6347. if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6348.   rm -rf conftest*
  6349.   eval "ac_cv_func_$ac_func=yes"
  6350. else
  6351.   echo "configure: failed program was:" >&5
  6352.   cat conftest.$ac_ext >&5
  6353.   rm -rf conftest*
  6354.   eval "ac_cv_func_$ac_func=no"
  6355. fi
  6356. rm -f conftest*
  6357. fi
  6358.  
  6359. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6360.   echo "$ac_t""yes" 1>&6
  6361.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6362.   cat >> confdefs.h <<EOF
  6363. #define $ac_tr_func 1
  6364. EOF
  6365.  
  6366. else
  6367.   echo "$ac_t""no" 1>&6
  6368. fi
  6369. done
  6370.  
  6371.  
  6372.  
  6373. LIBS="$LIBS $OGG_LIBS"
  6374.  
  6375.  
  6376.  
  6377.  
  6378.  
  6379.  
  6380. trap '' 1 2 15
  6381. cat > confcache <<\EOF
  6382. # This file is a shell script that caches the results of configure
  6383. # tests run on this system so they can be shared between configure
  6384. # scripts and configure runs.  It is not useful on other systems.
  6385. # If it contains results you don't want to keep, you may remove or edit it.
  6386. #
  6387. # By default, configure uses ./config.cache as the cache file,
  6388. # creating it if it does not exist already.  You can give configure
  6389. # the --cache-file=FILE option to use a different cache file; that is
  6390. # what configure does when it calls configure scripts in
  6391. # subdirectories, so they share the cache.
  6392. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  6393. # config.status only pays attention to the cache file if you give it the
  6394. # --recheck option to rerun configure.
  6395. #
  6396. EOF
  6397. # The following way of writing the cache mishandles newlines in values,
  6398. # but we know of no workaround that is simple, portable, and efficient.
  6399. # So, don't put newlines in cache variables' values.
  6400. # Ultrix sh set writes to stderr and can't be redirected directly,
  6401. # and sets the high bit in the cache file unless we assign to the vars.
  6402. (set) 2>&1 |
  6403.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6404.   *ac_space=\ *)
  6405.     # `set' does not quote correctly, so add quotes (double-quote substitution
  6406.     # turns \\\\ into \\, and sed turns \\ into \).
  6407.     sed -n \
  6408.       -e "s/'/'\\\\''/g" \
  6409.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  6410.     ;;
  6411.   *)
  6412.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  6413.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  6414.     ;;
  6415.   esac >> confcache
  6416. if cmp -s $cache_file confcache; then
  6417.   :
  6418. else
  6419.   if test -w $cache_file; then
  6420.     echo "updating cache $cache_file"
  6421.     cat confcache > $cache_file
  6422.   else
  6423.     echo "not updating unwritable cache $cache_file"
  6424.   fi
  6425. fi
  6426. rm -f confcache
  6427.  
  6428. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  6429.  
  6430. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6431. # Let make expand exec_prefix.
  6432. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6433.  
  6434. # Any assignment to VPATH causes Sun make to only execute
  6435. # the first set of double-colon rules, so remove it if not needed.
  6436. # If there is a colon in the path, we need to keep it.
  6437. if test "x$srcdir" = x.; then
  6438.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  6439. fi
  6440.  
  6441. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  6442.  
  6443. # Transform confdefs.h into DEFS.
  6444. # Protect against shell expansion while executing Makefile rules.
  6445. # Protect against Makefile macro expansion.
  6446. cat > conftest.defs <<\EOF
  6447. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  6448. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  6449. s%\[%\\&%g
  6450. s%\]%\\&%g
  6451. s%\$%$$%g
  6452. EOF
  6453. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  6454. rm -f conftest.defs
  6455.  
  6456.  
  6457. # Without the "./", some shells look in PATH for config.status.
  6458. : ${CONFIG_STATUS=./config.status}
  6459.  
  6460. echo creating $CONFIG_STATUS
  6461. rm -f $CONFIG_STATUS
  6462. cat > $CONFIG_STATUS <<EOF
  6463. #! /bin/sh
  6464. # Generated automatically by configure.
  6465. # Run this file to recreate the current configuration.
  6466. # This directory was configured as follows,
  6467. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6468. #
  6469. # $0 $ac_configure_args
  6470. #
  6471. # Compiler output produced by configure, useful for debugging
  6472. # configure, is in ./config.log if it exists.
  6473.  
  6474. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  6475. for ac_option
  6476. do
  6477.   case "\$ac_option" in
  6478.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6479.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  6480.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  6481.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  6482.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  6483.     exit 0 ;;
  6484.   -help | --help | --hel | --he | --h)
  6485.     echo "\$ac_cs_usage"; exit 0 ;;
  6486.   *) echo "\$ac_cs_usage"; exit 1 ;;
  6487.   esac
  6488. done
  6489.  
  6490. ac_given_srcdir=$srcdir
  6491. ac_given_INSTALL="$INSTALL"
  6492.  
  6493. trap 'rm -fr `echo "Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile win32/Makefile debian/Makefile vq/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  6494. EOF
  6495. cat >> $CONFIG_STATUS <<EOF
  6496.  
  6497. # Protect against being on the right side of a sed subst in config.status.
  6498. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  6499.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  6500. $ac_vpsub
  6501. $extrasub
  6502. s%@SHELL@%$SHELL%g
  6503. s%@CFLAGS@%$CFLAGS%g
  6504. s%@CPPFLAGS@%$CPPFLAGS%g
  6505. s%@CXXFLAGS@%$CXXFLAGS%g
  6506. s%@FFLAGS@%$FFLAGS%g
  6507. s%@DEFS@%$DEFS%g
  6508. s%@LDFLAGS@%$LDFLAGS%g
  6509. s%@LIBS@%$LIBS%g
  6510. s%@exec_prefix@%$exec_prefix%g
  6511. s%@prefix@%$prefix%g
  6512. s%@program_transform_name@%$program_transform_name%g
  6513. s%@bindir@%$bindir%g
  6514. s%@sbindir@%$sbindir%g
  6515. s%@libexecdir@%$libexecdir%g
  6516. s%@datadir@%$datadir%g
  6517. s%@sysconfdir@%$sysconfdir%g
  6518. s%@sharedstatedir@%$sharedstatedir%g
  6519. s%@localstatedir@%$localstatedir%g
  6520. s%@libdir@%$libdir%g
  6521. s%@includedir@%$includedir%g
  6522. s%@oldincludedir@%$oldincludedir%g
  6523. s%@infodir@%$infodir%g
  6524. s%@mandir@%$mandir%g
  6525. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  6526. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  6527. s%@INSTALL_DATA@%$INSTALL_DATA%g
  6528. s%@PACKAGE@%$PACKAGE%g
  6529. s%@VERSION@%$VERSION%g
  6530. s%@ACLOCAL@%$ACLOCAL%g
  6531. s%@AUTOCONF@%$AUTOCONF%g
  6532. s%@AUTOMAKE@%$AUTOMAKE%g
  6533. s%@AUTOHEADER@%$AUTOHEADER%g
  6534. s%@MAKEINFO@%$MAKEINFO%g
  6535. s%@SET_MAKE@%$SET_MAKE%g
  6536. s%@V_LIB_CURRENT@%$V_LIB_CURRENT%g
  6537. s%@V_LIB_REVISION@%$V_LIB_REVISION%g
  6538. s%@V_LIB_AGE@%$V_LIB_AGE%g
  6539. s%@VF_LIB_CURRENT@%$VF_LIB_CURRENT%g
  6540. s%@VF_LIB_REVISION@%$VF_LIB_REVISION%g
  6541. s%@VF_LIB_AGE@%$VF_LIB_AGE%g
  6542. s%@VE_LIB_CURRENT@%$VE_LIB_CURRENT%g
  6543. s%@VE_LIB_REVISION@%$VE_LIB_REVISION%g
  6544. s%@VE_LIB_AGE@%$VE_LIB_AGE%g
  6545. s%@CC@%$CC%g
  6546. s%@CPP@%$CPP%g
  6547. s%@host@%$host%g
  6548. s%@host_alias@%$host_alias%g
  6549. s%@host_cpu@%$host_cpu%g
  6550. s%@host_vendor@%$host_vendor%g
  6551. s%@host_os@%$host_os%g
  6552. s%@build@%$build%g
  6553. s%@build_alias@%$build_alias%g
  6554. s%@build_cpu@%$build_cpu%g
  6555. s%@build_vendor@%$build_vendor%g
  6556. s%@build_os@%$build_os%g
  6557. s%@LN_S@%$LN_S%g
  6558. s%@OBJEXT@%$OBJEXT%g
  6559. s%@EXEEXT@%$EXEEXT%g
  6560. s%@ECHO@%$ECHO%g
  6561. s%@RANLIB@%$RANLIB%g
  6562. s%@STRIP@%$STRIP%g
  6563. s%@LIBTOOL@%$LIBTOOL%g
  6564. s%@OGG_CFLAGS@%$OGG_CFLAGS%g
  6565. s%@OGG_LIBS@%$OGG_LIBS%g
  6566. s%@ALLOCA@%$ALLOCA%g
  6567. s%@LIBOBJS@%$LIBOBJS%g
  6568. s%@DEBUG@%$DEBUG%g
  6569. s%@PROFILE@%$PROFILE%g
  6570. s%@pthread_lib@%$pthread_lib%g
  6571.  
  6572. CEOF
  6573. EOF
  6574.  
  6575. cat >> $CONFIG_STATUS <<\EOF
  6576.  
  6577. # Split the substitutions into bite-sized pieces for seds with
  6578. # small command number limits, like on Digital OSF/1 and HP-UX.
  6579. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  6580. ac_file=1 # Number of current file.
  6581. ac_beg=1 # First line for current file.
  6582. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  6583. ac_more_lines=:
  6584. ac_sed_cmds=""
  6585. while $ac_more_lines; do
  6586.   if test $ac_beg -gt 1; then
  6587.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  6588.   else
  6589.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  6590.   fi
  6591.   if test ! -s conftest.s$ac_file; then
  6592.     ac_more_lines=false
  6593.     rm -f conftest.s$ac_file
  6594.   else
  6595.     if test -z "$ac_sed_cmds"; then
  6596.       ac_sed_cmds="sed -f conftest.s$ac_file"
  6597.     else
  6598.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  6599.     fi
  6600.     ac_file=`expr $ac_file + 1`
  6601.     ac_beg=$ac_end
  6602.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  6603.   fi
  6604. done
  6605. if test -z "$ac_sed_cmds"; then
  6606.   ac_sed_cmds=cat
  6607. fi
  6608. EOF
  6609.  
  6610. cat >> $CONFIG_STATUS <<EOF
  6611.  
  6612. CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile lib/modes/Makefile lib/books/Makefile lib/books/coupled/Makefile lib/books/uncoupled/Makefile lib/books/floor/Makefile doc/Makefile doc/vorbisfile/Makefile doc/vorbisenc/Makefile include/Makefile include/vorbis/Makefile examples/Makefile win32/Makefile debian/Makefile vq/Makefile"}
  6613. EOF
  6614. cat >> $CONFIG_STATUS <<\EOF
  6615. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  6616.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6617.   case "$ac_file" in
  6618.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  6619.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  6620.   *) ac_file_in="${ac_file}.in" ;;
  6621.   esac
  6622.  
  6623.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  6624.  
  6625.   # Remove last slash and all that follows it.  Not all systems have dirname.
  6626.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  6627.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  6628.     # The file is in a subdirectory.
  6629.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  6630.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  6631.     # A "../" for each directory in $ac_dir_suffix.
  6632.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  6633.   else
  6634.     ac_dir_suffix= ac_dots=
  6635.   fi
  6636.  
  6637.   case "$ac_given_srcdir" in
  6638.   .)  srcdir=.
  6639.       if test -z "$ac_dots"; then top_srcdir=.
  6640.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  6641.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  6642.   *) # Relative path.
  6643.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  6644.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  6645.   esac
  6646.  
  6647.   case "$ac_given_INSTALL" in
  6648.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  6649.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  6650.   esac
  6651.  
  6652.   echo creating "$ac_file"
  6653.   rm -f "$ac_file"
  6654.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  6655.   case "$ac_file" in
  6656.   *Makefile*) ac_comsub="1i\\
  6657. # $configure_input" ;;
  6658.   *) ac_comsub= ;;
  6659.   esac
  6660.  
  6661.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  6662.   sed -e "$ac_comsub
  6663. s%@configure_input@%$configure_input%g
  6664. s%@srcdir@%$srcdir%g
  6665. s%@top_srcdir@%$top_srcdir%g
  6666. s%@INSTALL@%$INSTALL%g
  6667. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  6668. fi; done
  6669. rm -f conftest.s*
  6670.  
  6671. EOF
  6672. cat >> $CONFIG_STATUS <<EOF
  6673.  
  6674. EOF
  6675. cat >> $CONFIG_STATUS <<\EOF
  6676.  
  6677. exit 0
  6678. EOF
  6679. chmod +x $CONFIG_STATUS
  6680. rm -fr confdefs* $ac_clean_files
  6681. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  6682.  
  6683.